added capability to register callback handlers in joystick module