Quote:
Originally Posted by JDM
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()) {
...
}
I hope this helps.
|
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()) {
...
}
I finally did get the code to work. With that fix mentioned above. But thank you for your help.