This commit is contained in:
twinaphex 2020-07-18 23:06:12 +02:00
parent 38a410105e
commit ad2279bb29
2 changed files with 13 additions and 13 deletions

View File

@ -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)

View File

@ -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);