[osg-users] Joystick support in OSG

Elias Tarasov elias.tarasov at gmail.com
Mon Nov 2 00:35:07 PST 2015


Hi!

Which is the best way of supporting joystick's input in modern OSG? 
OSG Cookbook says it's a Directinput 3rdParty lib, but looking into OSG trunk code it seems that last update was done 5 years ago. SDL was updated 5 month ago, but that comment in the last commit


> 
> OpenSceneGraph\src\osgPlugins\sdl\JoystickDevice.cpp(42): error C2664: 'const char *SDL_JoystickName(SDL_Joystick *)' : cannot convert argument 1 from 'int' to 'SDL_Joystick *'
> due to changes in the SDL api.
> 
> Tested with Visual Studio Express 2013; SDL 2.0.1"
> 


makes me uncertain about that choice.

Could anybody please provide more consistent info?

Thanks a lot and best regards!

Cheers,
Elias

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65508#65508








More information about the osg-users mailing list