|
|
|
| You're so Vexy. |
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Using auxiliary joystick buttons with IFI controller.
Does the FIRST controller recognize the auxiallry buttons on the joysticks provided in the kit; and, if so, what are they referred to in the code?
|
|
#2
|
||||
|
||||
|
Re: Using auxiliary joystick buttons with IFI controller.
Are you talking about the trigger and top buttons?
If so, they're recognized by the port of the joystick which they're on. For example if you wanted to use the trigger button on the joystick plugged into port 1, you use p1_sw_trig , likewise the top button would be p1_sw_top . Let me know if this helps. -Kristian EDIT: Whoops, I misread your post, you said auxiliary. Use p1_sw_aux or p1_sw_aux2 [just change the number of the port to the one you need]. Last edited by Kristian Calhoun : 17-07-2006 at 20:32. |
|
#3
|
||||
|
||||
|
Re: Using auxiliary joystick buttons with IFI controller.
This is very helpful. Thank you.
|
|
#4
|
||||
|
||||
|
Re: Using auxiliary joystick buttons with IFI controller.
Also, the various positions of the hat switch (the big round clicky thing) manifest themselves as different analog values on either the p1_aux or p1_wheel variables (can't remember which).
|
|
#5
|
|||
|
|||
|
Re: Using auxiliary joystick buttons with IFI controller.
Does anyone have more details on what the values are for the hat switch?
|
|
#6
|
|||
|
|||
|
Re: Using auxiliary joystick buttons with IFI controller.
Quote:
PHP Code:
|
|
#7
|
|||||
|
|||||
|
Re: Using auxiliary joystick buttons with IFI controller.
Quote:
[edit]I just realized that you are talking about new sticks and I am talking about old sticks. See Astronouth's post below me for information about the new joysticks.[/edit] You see, back in the day, two joysticks could be hooked to each gameport port. Some hardware manufacturers, rather than building an entire second joystick, just put in some circuitry to send "full up/down/left/right" instead of the analog values. This let you map the second joystick to a D-pad, for instance. However, on the IFI implementation of the Gameport, the "_wheel" variable uses one of the analog axes of the second joystick, and the "_aux" variable the other analog axis. This still leaves the two remaining digital variables of "_aux1" and "_aux2". It is possible that the up/down or left/right gets mapped "full up/down" to "_aux" and the other is mapped to "_aux1" and "_aux2". Sorry if my explanation now doesn't make a tremendous amount of sense. I am going to be writing all of this up much more clearly before build season. Last edited by Greg Marra : 03-12-2006 at 19:40. |
|
#8
|
|||||
|
|||||
|
Re: Using auxiliary joystick buttons with IFI controller.
Quote:
See http://www.chiefdelphi.com/forums/sh...655#post212681 Just be warned that that was back in 2004, when they first came out. There's a good chance they've changed, knowing how good of joysticks they are. ![]() |
|
#9
|
||||
|
||||
|
Re: Using auxiliary joystick buttons with IFI controller.
Quote:
Also remember that the even ports have pins to use for the switches of the odd port on the opposite side, so if you put in custom switches makes sure you aren't using them for more than one thing. Programmers should know the OI reference guide and the RC reference guide and the victor reference guide and every thing about the cmu-cam Those documents will save you hours during build season, and are extremely important for trouble shooting electronics and programming. James |
|
#10
|
|||
|
|||
|
Re: Using auxiliary joystick buttons with IFI controller.
Hey!
I just recently too just found out the values for the p1_wheel. If you are still interested send me a private message. That link you sent seems helpful if you noe Base 2 (binary). But i noe them in Base10 (normal decimal). let me noe. ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using IFI Controller witout Operator System | 703pascal | Programming | 20 | 16-06-2007 22:10 |
| Programming motors with joystick buttons | TMHStitans | Programming | 5 | 21-03-2005 21:07 |
| Victors controlled with joystick Buttons | JamesBrown | Programming | 2 | 18-02-2005 23:39 |
| Using the extra buttons on the joystick. | Code\\Pilot | Programming | 7 | 04-12-2004 19:30 |
| problem with joystick buttons (top left one) | Richomundo | Programming | 5 | 15-02-2004 17:16 |