Dolphin, the GameCube and Wii emulator - Forums

Full Version: Calibration on Linux
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I have a Mayflash GC to PC controller adapter and I am able to get the controller to calibrate successfully using jscal, but when I go into dolphin, the controller appears to not be calibrated. Am I calibrating it wrong?

The adapter I'm using: http://www.amazon.com/GC-Controller-Adapter-PC/dp/B0089NVTDM/ref=sr_1_2?ie=UTF8&qid=1402296948&sr=8-2&keywords=gamecube+controller+adapter
I attached the two images to show what I am talking about.
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.
I dont have a may flash but this may help you
http://raopinion.wordpress.com/2012/01/27/mayflash-n64-controller-adapter/
it's for n64 but samething I think.

If you still get issues try the xboxdrv library.
info here on that
https://wiki.archlinux.org/index.php/joystick
(06-12-2014, 04:33 AM)ulao Wrote: [ -> ]I dont have a may flash but this may help you
http://raopinion.wordpress.com/2012/01/27/mayflash-n64-controller-adapter/
it's for n64 but samething I think.

If you still get issues try the xboxdrv library.
info here on that
https://wiki.archlinux.org/index.php/joystick

Even though I did everything on that wordpress (still working on the xboxdrv alternative(?)), I still do not have it correctly calibrated on doplhin.
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.
Pages: 1 2