ericries

Results 17 comments of ericries

Just reporting back on the fix. Good news is I no longer get that error message. Bad news is that the devices in question (nintendo joycons connected via bluetooth) do...

easy enough, I'm happy to take a look. Before I wrote my last I confirmed they were working and accessible (via the joycon-python module: https://pypi.org/project/joycon-python/), I should have mentioned that...

You were right, they are showing up in the list of HIDDevices but not as pyglet devices. Here's the raw output (I set HIDDevice to dump_info during __init__) and then...

It only conforms to 0x05: ``` get_devices(): [PygletDevice(name=Apple Internal Keyboard / Trackpad), PygletDevice(name=None), PygletDevice(name=Keyboard Backlight), PygletDevice(name=Apple Internal Keyboard / Trackpad), PygletDevice(name=Apple Internal Keyboard / Trackpad), PygletDevice(name=Headset), PygletDevice(name=BTM), PygletDevice(name=Joy-Con (R)), PygletDevice(name=None),...

As I'm debugging, I found one oddity. get_guid is returning None because self.transport is 'Bluetooth' and not 'BLUETOOTH' like the code expects. If I make the fix, the joy-cons now...

When I say "copy mapping string" for each controller, it gives me: `030000007e0500000720000001000000,Joy-Con (R),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b12,leftshoulder:b4,leftstick:b11,rightshoulder:b5,start:b9,x:b2,y:b3,platform:Mac OS X, ` and `030000007e0500000620000001000000,Joy-Con (L),+leftx:h0.2,+lefty:h0.4,-leftx:h0.8,-lefty:h0.1,a:b0,b:b1,back:b13,leftshoulder:b4,leftstick:b10,rightshoulder:b5,start:b8,x:b2,y:b3,platform:Mac OS X,`

When I try to run the joystick example I get this error: ``` $ python3 examples/input/joystick.py Traceback (most recent call last): File "/Projects/pyglet/examples/input/joystick.py", line 44, in window = pyglet.window.Window(width=800, height=800)...