I don't see where you are creting mJoy device. By default, Ogre demos do not really create a joystick device. You'll need to do that, and make sure you turn buffered input on (recommended) for that device, and in the callbacks for JoyStickListener, simply react to the incoming values.