Would anyone be able to help me?
I forget how linux is setup, maybe jcal is reading the HID as raw and dolphin is reading sdl.
quote from
https://wiki.archlinux.org/index.php/joystick
"You can override SDL and force it to use the 'Joystick' API by setting the environment variable 'SDL_JOYSTICK_DEVICE=/dev/input/js0'. "
Another source -http://www.hard-light.net/forums/index.php?topic=68541.0
"
It seems to me that jscal wasn't putting the calibration values anywhere that was being noticed because SDL (SimpleDirectmediaLayer) doesn't use /dev/input/js0 to talk to the joystick hardware.
So i followed the instructions on the above thread, added SDL_JOYSTICK_DEVICE=/dev/input/js0 to /etc/environment and rebooted. Then recalibrated (jscal -c /dev/input/js0) and hey presto it worked!
"
Hope this helps you out.
(06-10-2014, 10:47 PM)ulao Wrote: [ -> ]I forget how linux is setup, maybe jcal is reading the HID as raw and dolphin is reading sdl.
quote from https://wiki.archlinux.org/index.php/joystick
"You can override SDL and force it to use the 'Joystick' API by setting the environment variable 'SDL_JOYSTICK_DEVICE=/dev/input/js0'. "
Another source -http://www.hard-light.net/forums/index.php?topic=68541.0
"
It seems to me that jscal wasn't putting the calibration values anywhere that was being noticed because SDL (SimpleDirectmediaLayer) doesn't use /dev/input/js0 to talk to the joystick hardware.
So i followed the instructions on the above thread, added SDL_JOYSTICK_DEVICE=/dev/input/js0 to /etc/environment and rebooted. Then recalibrated (jscal -c /dev/input/js0) and hey presto it worked!
"
Hope this helps you out.
I added the variable into /etc/environment, I rebooted and I recalibrated my controller using jscal, but I'm still not getting the right calibration. I think I did the same exact thing you did, but its not working for me.
If you press the down arrow is sdl the only option for your controller.
(06-12-2014, 04:04 AM)ulao Wrote: [ -> ]If you press the down arrow is sdl the only option for your controller.
Yes. What does the source code look like for your /etc/environment? That might be where I'm screwing up.
Would be nice to have a raw read feature in dolphin. Something that just reads the js0 it's self. Maybe a dev will pop in here.
(06-12-2014, 05:48 AM)ulao Wrote: [ -> ]Would be nice to have a raw read feature in dolphin. Something that just reads the js0 it's self. Maybe a dev will pop in here.
Yeah, I would greatly appreciate it if a dev could take a look at this, or help me out with trying to override the sdl joystick input because apparently I'm not sure how to do that. I'm quite new into programming, so its a little difficult to do this kind of stuff in the get go.