mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +00:00
(DirectInput) Buildfix
This commit is contained in:
parent
51b789ef6e
commit
e99fda4d1f
@ -550,11 +550,12 @@ static int16_t dinput_input_state(void *data,
|
|||||||
int16_t ret;
|
int16_t ret;
|
||||||
struct dinput_input *di = (struct dinput_input*)data;
|
struct dinput_input *di = (struct dinput_input*)data;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
enum input_device_type device = INPUT_DEVICE_TYPE_NONE;
|
||||||
|
|
||||||
switch (device)
|
switch (device)
|
||||||
{
|
{
|
||||||
case RETRO_DEVICE_JOYPAD:
|
case RETRO_DEVICE_JOYPAD:
|
||||||
return dinput_is_pressed(di, binds[port], port, id);
|
return dinput_is_pressed(di, binds[port], port, id, &device);
|
||||||
|
|
||||||
case RETRO_DEVICE_KEYBOARD:
|
case RETRO_DEVICE_KEYBOARD:
|
||||||
return dinput_keyboard_pressed(di, id);
|
return dinput_keyboard_pressed(di, id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user