Refactored joystick and button scripts into c#