|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#8
|
|||
|
|||
|
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 : 09-02-2009 at 19:29. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming the joystick trigger... | pudgeball | C/C++ | 4 | 10-01-2009 10:25 |
| Joystick Programming | greatman05 | Programming | 11 | 30-01-2008 20:40 |
| Joystick Programming | LieAfterLie | Programming | 7 | 15-02-2007 09:30 |
| Programming a Joystick | sbf2009 | Programming | 3 | 10-02-2007 15:59 |
| Joystick Programming | team 803 | Programming | 6 | 21-02-2006 11:49 |