diff options
author | Brad Davis <[email protected]> | 2014-07-24 16:47:31 -0700 |
---|---|---|
committer | Brad Davis <[email protected]> | 2014-07-24 16:47:31 -0700 |
commit | 0f49ce8fc6aa54224e4c0d6fda8c4527ad39cce1 (patch) | |
tree | da07ebc6a7f75185bda857dd5f1c34710b416a93 /Samples/CommonSrc/Platform/Win32_Gamepad.h | |
parent | ca79271759ff7eecd22ec5c4db438370fe51d687 (diff) |
0.4 Win-Beta0.4.0
Diffstat (limited to 'Samples/CommonSrc/Platform/Win32_Gamepad.h')
-rw-r--r-- | Samples/CommonSrc/Platform/Win32_Gamepad.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Samples/CommonSrc/Platform/Win32_Gamepad.h b/Samples/CommonSrc/Platform/Win32_Gamepad.h index e3f81af..6c80350 100644 --- a/Samples/CommonSrc/Platform/Win32_Gamepad.h +++ b/Samples/CommonSrc/Platform/Win32_Gamepad.h @@ -26,19 +26,22 @@ limitations under the License. #include "Gamepad.h" -#include <windows.h> +#include <WinSock2.h> +#include <WS2tcpip.h> +#define WIN32_LEAN_AND_MEAN +#include <Windows.h> #include <xinput.h> -namespace OVR { namespace Platform { namespace Win32 { +namespace OVR { namespace OvrPlatform { namespace Win32 { -class GamepadManager : public Platform::GamepadManager +class GamepadManager : public OvrPlatform::GamepadManager { public: GamepadManager(); ~GamepadManager(); - virtual UInt32 GetGamepadCount(); - virtual bool GetGamepadState(UInt32 index, GamepadState* pState); + virtual uint32_t GetGamepadCount(); + virtual bool GetGamepadState(uint32_t index, GamepadState* pState); private: // Dynamically ink to XInput to simplify projects. @@ -46,7 +49,7 @@ private: typedef DWORD (WINAPI *PFn_XInputGetState)(DWORD dwUserIndex, XINPUT_STATE* pState); PFn_XInputGetState pXInputGetState; - UInt32 LastPadPacketNo; + uint32_t LastPadPacketNo; }; }}} |