|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
top hat
the little button for relays on the top of the controller... in between the aux 1 and aux 2 buttons.
what is it called in code please.?? |
|
#2
|
||||
|
||||
|
Re: top hat
its actually an analog input. im not sure of the exact syntax but its the wheel axis. each direction outputs a number approximately 50? apart. sorry but i dont know the numbers off of the top of my head.
hope that helps ...Forest EDIT: are you talking about the hat switch on the joystick? or something else because that ^^^ is for the hat switch Last edited by fimmel : 20-11-2007 at 20:25. Reason: clarification |
|
#3
|
|||||
|
|||||
|
Re: top hat
It connects various resistors from +5 Aux to the same pin as the throttle wheel on a classic CF joystick. The code reads it as p#_wheel (where # is one of 1 through 4).
|
|
#4
|
||||
|
||||
|
Re: top hat
Reading it is kind of weird. At least for mine:
pX_wheel (X is 1 to 4, as Alan said) Code:
Neutral : 47 Left : 97 Left Down : 163 Down : 149 Right Down: 212 Right : 201 Right Up : 253 Up : 253 Left Up : 253 Those were for the one sitting next to me, I have no idea of they stay constant between joysticks. But subtracting 60 should be enough to get it all. =) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rack'n'Roll Hat | 1359th Scalawag | General Forum | 9 | 15-04-2007 17:57 |
| "Cool" Hat or Punk Hat? | Eugenia Gabrielov | Chit-Chat | 17 | 02-03-2005 21:59 |
| Joystick Hat button | ten3brousone | Programming | 8 | 20-02-2005 13:31 |
| Jostick HAT stick | krhs_programmer | Programming | 2 | 06-02-2005 18:26 |