mirror of
https://github.com/holub/mame
synced 2025-06-06 21:03:47 +03:00
added cast so direct input 8 code will build on mingw.
This commit is contained in:
parent
27fed1ec97
commit
7cecc0bb3c
@ -1055,9 +1055,8 @@ static void dinput_init(running_machine *machine)
|
|||||||
int didevtype_mouse = DI8DEVCLASS_POINTER;
|
int didevtype_mouse = DI8DEVCLASS_POINTER;
|
||||||
int didevtype_joystick = DI8DEVCLASS_GAMECTRL;
|
int didevtype_joystick = DI8DEVCLASS_GAMECTRL;
|
||||||
|
|
||||||
// first attempt to initialize DirectInput at the current version
|
|
||||||
dinput_version = DIRECTINPUT_VERSION;
|
dinput_version = DIRECTINPUT_VERSION;
|
||||||
result = DirectInput8Create(GetModuleHandle(NULL), dinput_version, &IID_IDirectInput8, &dinput, NULL);
|
result = DirectInput8Create(GetModuleHandle(NULL), dinput_version, &IID_IDirectInput8, (void *)&dinput, NULL);
|
||||||
if (result != DI_OK)
|
if (result != DI_OK)
|
||||||
{
|
{
|
||||||
dinput_version = 0;
|
dinput_version = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user