summaryrefslogtreecommitdiffstats
path: root/src/skel/win/win.h
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2019-06-11 11:30:53 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2019-06-11 11:30:53 +0200
commit87655bc1cfe22005813801a62c11b22a298d5be3 (patch)
treef2ae0f65d95d25150b101b7e65c038e3d809ae6a /src/skel/win/win.h
parentpremake: disabled SAFESEH (diff)
downloadre3-87655bc1cfe22005813801a62c11b22a298d5be3.tar
re3-87655bc1cfe22005813801a62c11b22a298d5be3.tar.gz
re3-87655bc1cfe22005813801a62c11b22a298d5be3.tar.bz2
re3-87655bc1cfe22005813801a62c11b22a298d5be3.tar.lz
re3-87655bc1cfe22005813801a62c11b22a298d5be3.tar.xz
re3-87655bc1cfe22005813801a62c11b22a298d5be3.tar.zst
re3-87655bc1cfe22005813801a62c11b22a298d5be3.zip
Diffstat (limited to 'src/skel/win/win.h')
-rw-r--r--src/skel/win/win.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/skel/win/win.h b/src/skel/win/win.h
index 2fd6ab30..d3b0169f 100644
--- a/src/skel/win/win.h
+++ b/src/skel/win/win.h
@@ -30,6 +30,25 @@ enum eWinVersion
extern RwUInt32 &gGameState;
+/* platform specfic global data */
+typedef struct
+{
+ HWND window;
+ HINSTANCE instance;
+ RwBool fullScreen;
+ RwV2d lastMousePos;
+
+ DWORD field_14;
+
+ LPDIRECTINPUT8 dinterface;
+ LPDIRECTINPUTDEVICE8 mouse;
+ LPDIRECTINPUTDEVICE8 joy1;
+ LPDIRECTINPUTDEVICE8 joy2;
+}
+psGlobalType;
+
+#define PSGLOBAL(var) (((psGlobalType *)(RsGlobal.ps))->var)
+
#ifdef __cplusplus
extern "C"
{
@@ -38,6 +57,27 @@ extern "C"
extern LRESULT CALLBACK
MainWndProc(HWND window, UINT message, WPARAM wParam, LPARAM lParam);
+RwBool IsForegroundApp();
+
+HRESULT _InputInitialise();
+HRESULT _InputInitialiseMouse();
+HRESULT CapturePad(RwInt32 padID);
+void _InputInitialiseJoys();
+HRESULT _InputAddJoyStick(LPDIRECTINPUTDEVICE8 lpDevice, INT num);
+HRESULT _InputAddJoys();
+HRESULT _InputGetMouseState(DIMOUSESTATE2 *state);
+void _InputShutdown();
+BOOL CALLBACK _InputEnumDevicesCallback( const DIDEVICEINSTANCE* pdidInstance, VOID* pContext );
+BOOL _InputTranslateKey(RsKeyCodes *rs, UINT flag, UINT key);
+void _InputTranslateShiftKeyUpDown(RsKeyCodes *rs);;
+BOOL _InputTranslateShiftKey(RsKeyCodes *rs, UINT key, bool bDown);
+BOOL _InputIsExtended(INT flag);
+
+void InitialiseLanguage();
+RwBool _psSetVideoMode(RwInt32 subSystem, RwInt32 videoMode);
+void CenterVideo(void);
+void CloseClip(void);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */