Linux gamepad remove redundant code