mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-21 13:53:49 -07:00
Cleans up Window class.
This commit is contained in:
parent
10ce3c88fb
commit
f9621dcc17
6 changed files with 70 additions and 103 deletions
|
@ -243,8 +243,8 @@ extern "C" void Graph_ProcessFrame(void (*run_one_game_iter)(void)) {
|
|||
extern "C" void Graph_StartFrame() {
|
||||
#ifndef __WIIU__
|
||||
// Why -1?
|
||||
int32_t dwScancode = OTRGlobals::Instance->context->GetWindow()->lastScancode;
|
||||
OTRGlobals::Instance->context->GetWindow()->lastScancode = -1;
|
||||
int32_t dwScancode = OTRGlobals::Instance->context->GetWindow()->GetLastScancode();
|
||||
OTRGlobals::Instance->context->GetWindow()->SetLastScancode(-1);
|
||||
|
||||
switch (dwScancode - 1) {
|
||||
case SDL_SCANCODE_F5: {
|
||||
|
@ -374,16 +374,6 @@ extern "C" uint16_t OTRGetPixelDepth(float x, float y) {
|
|||
return OTRGlobals::Instance->context->GetWindow()->GetPixelDepth(x, y);
|
||||
}
|
||||
|
||||
extern "C" int32_t OTRGetLastScancode()
|
||||
{
|
||||
return OTRGlobals::Instance->context->GetWindow()->lastScancode;
|
||||
}
|
||||
|
||||
extern "C" void OTRResetScancode()
|
||||
{
|
||||
OTRGlobals::Instance->context->GetWindow()->lastScancode = -1;
|
||||
}
|
||||
|
||||
extern "C" uint32_t ResourceMgr_GetGameVersion()
|
||||
{
|
||||
return OTRGlobals::Instance->context->GetResourceManager()->GetGameVersion();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue