Gamepad refactor functions