|
Re: Joysticks question???
Yes, your first step is to use the OI Digital input block to get the reading off the joystick. Then you can assign the button to an unsigned char variable, and then use the if statement to "test" the variable. Now, if you decide to use the thumbstick on the joystick, that is a little different, as that thumbstick is actually a four or eight (I can't remember) position analog input. for ex. If you point the stick up, you might get a reading of 90, but if you point it left, you might get a 500 or something. In that case, you will use the OI analog input, but same basic principle.
__________________
2007-
Midwest Regional-
Regional Finalists with 1000 and 447
Rockwell Automation Inspiration in Control Award
Regional Woodie Flowers - Ed Wegscheid

|