mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 04:21:15 +00:00
🧑💻 fix: move function to IsleApp member
This commit is contained in:
parent
18571714e1
commit
e7c0392bc2
@ -386,7 +386,7 @@ SDL_AppResult SDL_AppIterate(void* appstate)
|
|||||||
g_mousemoved = FALSE;
|
g_mousemoved = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
MoveVirtualCursorViaJoystick();
|
g_isle->MoveVirtualMouseViaJoystick();
|
||||||
}
|
}
|
||||||
|
|
||||||
return SDL_APP_CONTINUE;
|
return SDL_APP_CONTINUE;
|
||||||
@ -1276,7 +1276,7 @@ IDirect3DRMMiniwinDevice* GetD3DRMMiniwinDevice()
|
|||||||
return d3drmMiniwinDev;
|
return d3drmMiniwinDev;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoveVirtualCursorViaJoystick()
|
void IsleApp::MoveVirtualMouseViaJoystick()
|
||||||
{
|
{
|
||||||
if (g_lastJoystickMouseX != 0 || g_lastJoystickMouseY != 0) {
|
if (g_lastJoystickMouseX != 0 || g_lastJoystickMouseY != 0) {
|
||||||
g_mousemoved = TRUE;
|
g_mousemoved = TRUE;
|
||||||
|
|||||||
@ -60,6 +60,7 @@ class IsleApp {
|
|||||||
MxResult ParseArguments(int argc, char** argv);
|
MxResult ParseArguments(int argc, char** argv);
|
||||||
MxResult VerifyFilesystem();
|
MxResult VerifyFilesystem();
|
||||||
void DetectGameVersion();
|
void DetectGameVersion();
|
||||||
|
void MoveVirtualMouseViaJoystick();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
char* m_hdPath; // 0x00
|
char* m_hdPath; // 0x00
|
||||||
@ -107,6 +108,4 @@ extern MxS32 g_closed;
|
|||||||
|
|
||||||
extern IDirect3DRMMiniwinDevice* GetD3DRMMiniwinDevice();
|
extern IDirect3DRMMiniwinDevice* GetD3DRMMiniwinDevice();
|
||||||
|
|
||||||
void MoveVirtualCursorViaJoystick();
|
|
||||||
|
|
||||||
#endif // ISLEAPP_H
|
#endif // ISLEAPP_H
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user