Added support for joystick/gamepad devices