summaryrefslogtreecommitdiffhomepage
path: root/Stars45
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-09-30 18:03:15 +0200
committerAki <please@ignore.pl>2021-09-30 18:03:15 +0200
commit9e7aa8b1e7ca3f25746a2f7538d44de0f886ca51 (patch)
treeff6dcea130fef2e18338a2db155ec2ee5bcf0081 /Stars45
parent317ff02648d76eb875a1826ef7fcc72b8e497235 (diff)
downloadstarshatter-9e7aa8b1e7ca3f25746a2f7538d44de0f886ca51.zip
starshatter-9e7aa8b1e7ca3f25746a2f7538d44de0f886ca51.tar.gz
starshatter-9e7aa8b1e7ca3f25746a2f7538d44de0f886ca51.tar.bz2
Upgraded directinput expectations in Joystick.cpp
Diffstat (limited to 'Stars45')
-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);