evdev/dupcheck: Don't check unassigned buttons
Also removes the trailing whitespaces.
This commit is contained in:
parent
989c0fa776
commit
7029af98a3
|
@ -199,6 +199,10 @@
|
||||||
|
|
||||||
bool input_evdev_button_assigned(EvdevControllerMapping* mapping, int button)
|
bool input_evdev_button_assigned(EvdevControllerMapping* mapping, int button)
|
||||||
{
|
{
|
||||||
|
// Don't check unassigned buttons
|
||||||
|
if (button == -1)
|
||||||
|
return false;
|
||||||
|
|
||||||
return ((mapping->Btn_A == button)
|
return ((mapping->Btn_A == button)
|
||||||
|| (mapping->Btn_B == button)
|
|| (mapping->Btn_B == button)
|
||||||
|| (mapping->Btn_C == button)
|
|| (mapping->Btn_C == button)
|
||||||
|
|
Loading…
Reference in New Issue