mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Cleanups
This commit is contained in:
parent
38a410105e
commit
ad2279bb29
@ -450,7 +450,7 @@ static int16_t ps3_joypad_axis(unsigned port_num, uint32_t joyaxis)
|
||||
bool is_neg = false;
|
||||
bool is_pos = false;
|
||||
|
||||
if (joyaxis == AXIS_NONE || port_num >= DEFAULT_MAX_PADS)
|
||||
if (port_num >= DEFAULT_MAX_PADS)
|
||||
return 0;
|
||||
|
||||
if (AXIS_NEG_GET(joyaxis) < 4)
|
||||
|
@ -128,7 +128,7 @@ static int16_t kpad_axis(unsigned pad, uint32_t axis)
|
||||
axis_data data;
|
||||
int channel = to_wiimote_channel(pad);
|
||||
|
||||
if (!kpad_query_pad(pad) || channel < 0 || axis == AXIS_NONE)
|
||||
if (!kpad_query_pad(pad) || channel < 0)
|
||||
return 0;
|
||||
|
||||
pad_functions.read_axis_data(axis, &data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user