Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: OIS Linix VS Windows  (Read 560 times)

chornox

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 6
    • View Profile
OIS Linix VS Windows
« on: October 19, 2009, 09:01:09 PM »

It seems I can't use state->buttonDown(), mInputManager->numJoySticks in linux is it normal ?

what are the other alternatives?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Re: OIS Linix VS Windows
« Reply #1 on: October 19, 2009, 09:38:53 PM »

You don't mention what your problem is. The API functions, or at least should, identically on every platform.
Logged

chornox

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 6
    • View Profile
Re: OIS Linix VS Windows
« Reply #2 on: October 20, 2009, 09:18:34 AM »

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
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2653
    • View Profile
    • http://www.wreckedgames.com
Re: OIS Linix VS Windows
« Reply #3 on: October 20, 2009, 11:21:51 PM »

Make sure you re using the same version of OIS on every platform and it will be the same. If you are using the packed installed by apt, you will likely find something different.

Make sure you are using v1_2 CVS branch.
Logged