Well, it seems for different IOS versions it is not.
I had to use
instead of state->buttonDown() this method state->mButtons.at(#)
and
instead of mInputManager->numJoySticks this one mInputManager->getNumberOfDevices(OIS::OISJoyStick)
I am sorry I didn't mention other specs
Ogre3d + OIS + CentOS release 4.6 (Final)
Thanks