At the moment, I’m trying JInput in my engine and game under Linux (Mandriva Spring 2007).
Everything works fine as long as I manually change the permission for /dev/input/* (Mandriva does not allow neither read nor write).
I do not consider asking the user to change it’s computer configuration as a suitable solution for deployment.
Are there any other alternative ?
I was thinking of things like ;
- a plugin that would rely on SDL (as I heard, SDL seems to handle the permission problem),
- a plugin that would rely on one of X11 / AWT / SWT
- a way to dynamically select the choosen plugin ; i.e. a way for the game to select the plugin based on the the capability of the running platform (for example ; Linux Kernel plugin reports no controller, AWT reports mouse/keyboard only, SWT reports plugin not available due to missing SWT library, SDL reports joystick/mouse/keyboard then select SDL plugin).
- another existing library that could serve as a backup when the running system is not properly configured for JInput.
In short, I would like running my game under Linux to be as easy as running it under Windows.
Any suggestion would be welcomed !
Thanks
Vincent