mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 03:32:46 +00:00
Cleanups
This commit is contained in:
parent
7c61a6527f
commit
1c0f79442b
@ -49,7 +49,7 @@ int16_t gamepad_get_axis_value(int16_t state[3][2], axis_data *data)
|
||||
if (!data)
|
||||
return 0;
|
||||
|
||||
switch(data->axis)
|
||||
switch (data->axis)
|
||||
{
|
||||
case AXIS_LEFT_ANALOG_X:
|
||||
case AXIS_LEFT_ANALOG_Y:
|
||||
|
@ -31,24 +31,24 @@ int16_t x_mouse_state_wheel(unsigned id)
|
||||
switch (id)
|
||||
{
|
||||
case RETRO_DEVICE_ID_MOUSE_WHEELUP:
|
||||
ret = x11_mouse_wu;
|
||||
ret = x11_mouse_wu;
|
||||
x11_mouse_wu = 0;
|
||||
return ret;
|
||||
break;
|
||||
case RETRO_DEVICE_ID_MOUSE_WHEELDOWN:
|
||||
ret = x11_mouse_wd;
|
||||
ret = x11_mouse_wd;
|
||||
x11_mouse_wd = 0;
|
||||
return ret;
|
||||
break;
|
||||
case RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELUP:
|
||||
ret = x11_mouse_hwu;
|
||||
ret = x11_mouse_hwu;
|
||||
x11_mouse_hwu = 0;
|
||||
return ret;
|
||||
break;
|
||||
case RETRO_DEVICE_ID_MOUSE_HORIZ_WHEELDOWN:
|
||||
ret = x11_mouse_hwd;
|
||||
ret = x11_mouse_hwd;
|
||||
x11_mouse_hwd = 0;
|
||||
return ret;
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
void x_input_poll_wheel(XButtonEvent *event, bool latch)
|
||||
|
Loading…
x
Reference in New Issue
Block a user