Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Multiple Gamepad
- - By chase4926 Date 2012-09-05 09:14
I know that this can be done on some flavors of Linux through the "joystick" gem, but are there plans on making this a feature in vanilla Gosu?
Parent - - By jlnr (dev) Date 2012-09-05 10:20
It's planned insofar that a few people have asked for this in the last time, and I'd really love to implement it (gamepads ftw). But there are still lots of unpushed commits in one of my Gosu clones re: the 0.8 interface.

What I have in mind so far is multiple gamepad support for Windows and Mac only, because there is no Linux gamepad implementation in Gosu that I could build on. I think for that it'd make sense to move Linux Gosu to GLFW first, and here I know neither whether 3.0 is production ready by now, and if it helps with multiple gamepads or not.

Sooo...it's a long chain of dependencies :)
Parent - - By chase4926 Date 2012-09-05 10:58
Is it a planned feature of 0.8?
Parent - By jlnr (dev) Date 2012-09-05 11:09
Umm, of 0.8.x I guess. 0.7->0.8 is only about removing the Window arguments from constructors (which has lots of implications on the C++ side).

I don't usually change the second digit unless I change the Gosu interface in major ways. So Gosu 0.8.x might be a long time window :)

The other way around, if someone finds a clean way to add this to Gosu without breaking the interface too much, I'd also push it as another 0.7.x release. I have actually built a gem with multi-gamepad support for a friend, and the branch is still on github. But my approach ended up being pretty ugly - I made GpButton0 a function that took the gamepad index, and it didn't feel "Ruby-ish" in the end.
Up Topic Gosu / Gosu Exchange / Multiple Gamepad

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill