Hi Chris,
Thanks for joining in. The main thing that needs to happen for OSX support
is to figure out the GUID format, which is going to be made up from the OS
device ids, mixed around. It looks like the joystick devices on Mac should
have a "dump_info" method which will return all of the various hardware
ids. If you could initialize your joysticks and return the output of that
method, it should be a great help.
I'm not sure how familiar you are with using joysticks on pyglet, but it
should be just a matter of getting the joysticks, opening them, and calling
the method. Something like:
import pyglet
for joystick in pyglet.input.get_joysticks():
joystick.open()
joystick.device.dump_info()
# maybe joystick.dump_info() ?
Also, what kind of joysticks are they?
Thanks!
-Ben
On Monday, November 14, 2016 at 9:11:20 PM UTC+9, Chris Norman wrote:
>
> Hi,
>
> I have a mac and two different joysticks, and I would be happy to help!
>
>
> HTH,
>
> On 14/11/2016 17:07, Benjamin Moran wrote:
>
> Hi guys,
>
> I've been working on improving pyglet's support for game controllers, and
> am getting ready to open a new "game_controller" branch. I'd be grateful
> for feedback from anyone who has a joystick and is willing to do a little
> testing, or wants to help make this happen.
>
> The new branch implements an SDL2-style Game Controller API that coexists
> alongside the joystick API. This new game controller API is a way to make
> game controllers "just work" on all platforms, by creating a standard
> internal layout that mimics the Xbox controller. Joysticks are
> automatically mapped to this layout, using an internal mapping database. As
> with SDL, there are built-in mappings for a few dozen popular controllers,
> plus the ability to add new mappings from a string, file, or environmental
> variable.
>
> Linux and Windows is working, but I don't have access to a Mac. If anyone
> has a Mac and a joystick and wants to help, please let me know.
>
> Some additional information about this SDL2-style API:
>
> SDL Wiki page: http://wiki.libsdl.org/CategoryGameController
> GameController mapping database:
> https://github.com/gabomdq/SDL_GameControllerDB
> Love2D implementation:
> https://love2d.org/wiki/Joystick:isGamepad
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected]
> <javascript:>.
> Visit this group at https://groups.google.com/group/pyglet-users.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.