![]() |
Programming Extra Joystick Buttons
I just had a question about how the joystick buttons are programmed. We're using a joystick that has more buttons than the default code has assigned. I was looking at how they're assigned, and just wanted to know if the "bit#" at the end of the RC feedback variable corresponds to the pin on the connector. In other words, say the button I want to assign uses pin 14 of the connector, would that be "xx.xxxxxx.bit14"? If not, how would I be able to figure out the bit value?
|
Re: Programming Extra Joystick Buttons
The OI Reference Guide availible from http://ifirobotics.com/oi.shtml shows the pinouts of the joystick ports and the appropriate variables on pages 7-10.
The ones listed are the only ones connected. If you have a joystick with switches on other pins, you will have to make your own adapter so that they map to the correct pins. |
Re: Programming Extra Joystick Buttons
Quote:
In any case, each OI port only allows 4 switch inputs. To get more, you need to either wire to other ports, or make a circuit that encodes the extra switchs as analog inputs (this is how the USB Chicklet handles extra buttons, for example). |
| All times are GMT -5. The time now is 18:26. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi