diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-10-27 10:51:24 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-10-27 10:51:24 +0100 |
commit | 62240606271b80ad5f8cc47f30d6f3f974d1fabe (patch) | |
tree | 0ec36dae8d78c49b21d3cce71c16c9e0da8c74e8 /src/skel/win/win.h | |
parent | script 600-699 (diff) | |
parent | Merge pull request #259 from Fire-Head/master (diff) | |
download | re3-62240606271b80ad5f8cc47f30d6f3f974d1fabe.tar re3-62240606271b80ad5f8cc47f30d6f3f974d1fabe.tar.gz re3-62240606271b80ad5f8cc47f30d6f3f974d1fabe.tar.bz2 re3-62240606271b80ad5f8cc47f30d6f3f974d1fabe.tar.lz re3-62240606271b80ad5f8cc47f30d6f3f974d1fabe.tar.xz re3-62240606271b80ad5f8cc47f30d6f3f974d1fabe.tar.zst re3-62240606271b80ad5f8cc47f30d6f3f974d1fabe.zip |
Diffstat (limited to '')
-rw-r--r-- | src/skel/win/win.h | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/src/skel/win/win.h b/src/skel/win/win.h index ae2c7eec..242438ea 100644 --- a/src/skel/win/win.h +++ b/src/skel/win/win.h @@ -24,11 +24,13 @@ enum eWinVersion { OS_WIN95 = 0, OS_WIN98, - oS_WINNT, + OS_WINNT, OS_WIN2000, OS_WINXP, }; +extern DWORD &_dwOperatingSystemVersion; + extern RwUInt32 &gGameState; /* platform specfic global data */ @@ -50,6 +52,41 @@ psGlobalType; #define PSGLOBAL(var) (((psGlobalType *)(RsGlobal.ps))->var) +enum eJoypads +{ + JOYSTICK1 = 0, + JOYSTICK2, + MAX_JOYSTICKS +}; + +enum eJoypadState +{ + JOYPAD_UNUSED, + JOYPAD_ATTACHED, +}; + +struct tJoy +{ + eJoypadState m_State; + bool m_bInitialised; + bool m_bHasAxisZ; + bool m_bHasAxisR; + char _pad0; + int m_nVendorID; + int m_nProductID; +}; + +class CJoySticks +{ +public: + tJoy m_aJoys[MAX_JOYSTICKS]; + + CJoySticks(); + void ClearJoyInfo(int joyID); +}; + +extern CJoySticks AllValidWinJoys; + #ifdef __cplusplus extern "C" { |