summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Joystick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Joystick.cpp')
-rw-r--r--Stars45/Joystick.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Stars45/Joystick.cpp b/Stars45/Joystick.cpp
index 6c3e401..3d641dd 100644
--- a/Stars45/Joystick.cpp
+++ b/Stars45/Joystick.cpp
@@ -41,7 +41,7 @@
#include "MachineInfo.h"
#include "Game.h"
-#define DIRECTINPUT_VERSION 0x0700
+#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>
@@ -111,7 +111,7 @@ Joystick::Joystick()
}
else if (!pdi) {
- HRESULT hr = DirectInputCreateEx(Game::GetHINST(),
+ HRESULT hr = DirectInput8Create(Game::GetHINST(),
DIRECTINPUT_VERSION,
IID_IDirectInput7,
(void**)&pdi,
@@ -352,7 +352,7 @@ Joystick::EnumerateDevices()
ndev = 0;
HRESULT hr =
- pdi->EnumDevices(DIDEVTYPE_JOYSTICK,
+ pdi->EnumDevices(DI8DEVTYPE_JOYSTICK,
EnumJoystick,
(LPVOID) 0,
DIEDFL_ATTACHEDONLY);