Xbox 360 controller and hi object - problem with triggers
Oct 31 2012 | 12:50 pm
Im trying to hook up the 360 controller to Max and send OSC messages to a audio engine called wwise. The connection works well, but I have a problem with the data comming from the triggers on the back of the controllers.
When I press the right trigger it sends the message "8" with a value from 32767 to 127. When I press the left trigger it sends the same message "8" but with values going from 32767 to 65407.
Right now I just look at the number and if its bigger than the initial value 32767 I know that the left trigger is pressed and if its smaller the right trigger is pressed. But how am I supposed to know if both are being pressed simultaneously?
This might be a problem with the hi device not being fully compatible with the controller, or maybe Im missing something..
Any help would be very appreciated.
This is the patch im working on: