|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Joystick Trigger Programming
You can use the GetTrigger() function. Something like this:
Code:
Joystick *stick;
stick = new Joystick(1);
if (stick->GetTrigger())
{
// Code if trigger is held
}
else
{
// Code if trigger is released
}
Code:
Joystick *stick;
stick = new Joystick(1);
if (stick->GetRawButton(1-11))
{
// Code if button is held
}
else if (!stick->GetRawButton(1-11))
{
// Code if button is released
}
Last edited by csshakka : 02-09-2009 at 07:29 PM. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming the joystick trigger... | pudgeball | C/C++ | 4 | 01-10-2009 10:25 AM |
| Joystick Programming | greatman05 | Programming | 11 | 01-30-2008 08:40 PM |
| Joystick Programming | LieAfterLie | Programming | 7 | 02-15-2007 09:30 AM |
| Programming a Joystick | sbf2009 | Programming | 3 | 02-10-2007 03:59 PM |
| Joystick Programming | team 803 | Programming | 6 | 02-21-2006 11:49 AM |