GamepadTest: fix dpad logic for linux