Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Creation hint for specific Joystick  (Read 1141 times)

Krulspeld

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
    • View Profile
Creation hint for specific Joystick
« on: October 03, 2006, 06:25:20 AM »

Currently one needs to ask the inputmanager for a joystick and wait which of the available joysticks is returned. I have two different joysticks attached and want to be able to retrieve the right OIS::Joystick from the inputmanager based upon some creation hint like device name, number of axes, number of buttons, forcefeedback supported, or even which game port or USB (I am not sure if that's possible) etc.

Right now I have to ask the inputmanager for joysticks as long as the one I am looking for is not returned. Maybe this also applies to other devices like mice.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Creation hint for specific Joystick
« Reply #1 on: October 03, 2006, 07:09:21 AM »

Ah, good idea. I will look into a creation based on device ID of some sort. USB connection port is not a good idea, but vendor ID or something like that would be a good idea.
Logged