|
Re: How do I Link a (group of) Joystick button(s) to a motor?
I can't see anything wrong with the code you posted. I'm not sure that you are reading the stick, however.
Print out the status of "m_rollerStick->GetRawButton(X)" and make sure you are correctly reading the buttons. This will also indicate whether for some reason the block of code isn't getting run because of a conditional somewhere.
Lastly, make sure you don't re-set "m_roller" later in the code.
|