The Open Input System (OIS) provides three primary classes to retrieve input: Keyboard, Mouse, and Joystick. In these tutorials we will really only be covering how to use the Keyboard and Mouse objects. If you are interested in using a joystick (or gamepad) with Ogre, you should look into the Joystick class.
And next time you ask something, do specify the library you're using...
Yeah i'm going to use joystick with ogre. But don't know how to call functions for joystick buttons.
And can you please tell me where is the Joystick class.