Refactor RetroPlayer input code
Add gamepad support to RetroPlayer