|
Re: Programming Specific Button Input on Controller
In WindRiver, you can use joystickname.GetTrigger() and joystickname.GetTop() for the trigger and the top. You can then use joystickname.GetRawButton(button number).
Replace joystickname with the name of your joystick variable. Replace button number with the number of the button (each button is labelled by number on the kit joysticks).
GetTrigger, GetTop, and GetRawButton return true or false.
|