From 9e7aa8b1e7ca3f25746a2f7538d44de0f886ca51 Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 30 Sep 2021 18:03:15 +0200 Subject: Upgraded directinput expectations in Joystick.cpp --- Stars45/Joystick.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Stars45') 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 @@ -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); -- cgit v1.1