|
XBox |
Mark Oates
Member #1,146
March 2001
|
Out of the box, the Xbox Wireless Controller (Bluetooth) mappings don't appear to be correct on MacOS. A simple debugging program (attached) shows the stick, axis, and position mappings work out like this: {"name":"611474","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/3\/f355124b8b2f8031ecc405682d9b37b5.png","w":1214,"h":886,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/3\/f355124b8b2f8031ecc405682d9b37b5"} The buttons seem to work, but it doesn't look like the paddles on the top back of the controller do anything. The http://html5gamepad.com/ tester site shows the buttons and axes mapped correctly as you would expect. I also downloaded a SDL Gamepad tool and it mapps and works as expected. Using a similar Logitech Wireless Gamepad 710 works as expected. Any ideas where I should start fixing this problem? __________ OK, I've managed to isolate id down to src/macos/hidjoy.m. But after upgrading to 5.2.4 it seems to have (mostly) solved the problem! The axis on the right is still emitting axes 0 and 1, but now the left axis and the hat are reporting different axis number . Since at this time, I'm only interested in those two axis, then there's no concern for me. With the upgrade, my two joysticks are both reporting names of "Joystick", while before they were reporting the expected names "Xbox Wireless Controller" or "Logitech Wireless Gamepad". -- |
|