summaryrefslogtreecommitdiffstats
path: root/src/skel/win/win.h
diff options
context:
space:
mode:
authorFire_Head <Fire-Head@users.noreply.github.com>2019-10-27 04:36:58 +0100
committerGitHub <noreply@github.com>2019-10-27 04:36:58 +0100
commit6a46cc6c3b2aa7ee0a05260b671b29adb01167c7 (patch)
treed7a4b2ec22bcb6a9f6d8ef2602c7fdbac417d18b /src/skel/win/win.h
parentSfxEnum (diff)
parentControllerConfig done (diff)
downloadre3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar.gz
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar.bz2
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar.lz
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar.xz
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.tar.zst
re3-6a46cc6c3b2aa7ee0a05260b671b29adb01167c7.zip
Diffstat (limited to 'src/skel/win/win.h')
-rw-r--r--src/skel/win/win.h39
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"
{