|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Programming the joystick trigger...
There's a function of the Joystick class called "GetTrigger".
So, the code that you would want to use would be something like the following, where m_Stick is the name of the Joystick object that you want to check. Code:
if (m_Stick->GetTrigger()) {
...
}
|
|
#2
|
|||
|
|||
|
Re: Programming the joystick trigger...
Quote:
The one thing I find when we try to use '->' is that I get an error; "error: base operand of `->' has non-pointer type `Joystick'". So my around that error was/is; Code:
if (m_Stick.GetTrigger()) {
...
}
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Joystick Programming | greatman05 | Programming | 11 | 01-30-2008 08:40 PM |
| Single Click On/Off Using the Trigger in EasyC | IraJason | Programming | 15 | 06-01-2007 11:37 AM |
| Joystick Programming | LieAfterLie | Programming | 7 | 02-15-2007 09:30 AM |
| Programming a Joystick | sbf2009 | Programming | 3 | 02-10-2007 03:59 PM |
| Programming the second joystick in PBASIC | archiver | 2001 | 2 | 06-24-2002 12:25 AM |