• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Controllers v
« Previous 1 ... 164 165 166 167 168 ... 304 Next »

Calibration on Linux
View New Posts | View Today's Posts

Pages (2): 1 2 Next »
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Calibration on Linux
06-09-2014, 05:02 PM (This post was last modified: 06-09-2014, 05:03 PM by FinL.)
#1
FinL Offline
Junior Member
**
Posts: 7
Threads: 1
Joined: Jun 2014
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.


Attached Files Thumbnail(s)
       
Find
Reply
06-10-2014, 03:54 PM
#2
FinL Offline
Junior Member
**
Posts: 7
Threads: 1
Joined: Jun 2014
Would anyone be able to help me?
Find
Reply
06-10-2014, 10:47 PM (This post was last modified: 06-10-2014, 10:55 PM by ulao.)
#3
ulao Offline
Above and Beyond
*******
Posts: 1,029
Threads: 79
Joined: May 2009
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.
[Image: newLogo_white_small.png]

main page
Working controllers


[url=http://spreadsheets.google.com/pub?key=tGD-U_eW1Rc7rNyqkpgJuIg&output=html][/url]
Find
Reply
06-12-2014, 03:58 AM (This post was last modified: 06-12-2014, 03:59 AM by FinL.)
#4
FinL Offline
Junior Member
**
Posts: 7
Threads: 1
Joined: Jun 2014
(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.
Find
Reply
06-12-2014, 04:04 AM (This post was last modified: 06-12-2014, 04:05 AM by ulao.)
#5
ulao Offline
Above and Beyond
*******
Posts: 1,029
Threads: 79
Joined: May 2009
If you press the down arrow is sdl the only option for your controller.
[Image: newLogo_white_small.png]

main page
Working controllers


[url=http://spreadsheets.google.com/pub?key=tGD-U_eW1Rc7rNyqkpgJuIg&output=html][/url]
Find
Reply
06-12-2014, 04:13 AM (This post was last modified: 06-12-2014, 04:15 AM by FinL.)
#6
FinL Offline
Junior Member
**
Posts: 7
Threads: 1
Joined: Jun 2014
(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.
Find
Reply
06-12-2014, 04:33 AM (This post was last modified: 06-12-2014, 04:38 AM by ulao.)
#7
ulao Offline
Above and Beyond
*******
Posts: 1,029
Threads: 79
Joined: May 2009
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
[Image: newLogo_white_small.png]

main page
Working controllers


[url=http://spreadsheets.google.com/pub?key=tGD-U_eW1Rc7rNyqkpgJuIg&output=html][/url]
Find
Reply
06-12-2014, 04:55 AM (This post was last modified: 06-12-2014, 04:57 AM by FinL.)
#8
FinL Offline
Junior Member
**
Posts: 7
Threads: 1
Joined: Jun 2014
(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.
Find
Reply
06-12-2014, 05:48 AM
#9
ulao Offline
Above and Beyond
*******
Posts: 1,029
Threads: 79
Joined: May 2009
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.
[Image: newLogo_white_small.png]

main page
Working controllers


[url=http://spreadsheets.google.com/pub?key=tGD-U_eW1Rc7rNyqkpgJuIg&output=html][/url]
Find
Reply
06-16-2014, 10:44 AM
#10
FinL Offline
Junior Member
**
Posts: 7
Threads: 1
Joined: Jun 2014
(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.
Find
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode