mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-04 02:26:13 +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;
|
||||
struct dinput_input *di = (struct dinput_input*)data;
|
||||
settings_t *settings = config_get_ptr();
|
||||
enum input_device_type device = INPUT_DEVICE_TYPE_NONE;
|
||||
|
||||
switch (device)
|
||||
{
|
||||
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:
|
||||
return dinput_keyboard_pressed(di, id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user