Add Input handler class.

1. Add Input support for joystick & mouse.
2. My PS4 controller didn't work with SDL's joystick event,
the 'event.jaxis.axis' changes even when I didn't touch the
stick.