![]() |
Joystick Trigger Programming
I am using WindRiver and all of the posts for the trigger programming are for LabVIEW. Could anyone help me with the programming of the buttons on the joysticks in WindRiver? Thanks a lot.
|
Re: Joystick Trigger Programming
If anyone knowns how to program limit switches that would be helpful as well. Thanks again.
|
Re: Joystick Trigger Programming
Joystick stick(1);//channel 1
if (stick.GetRawButton(1-11))//1 is the trigger button, 2-11 the buttons labled as such { ... } DigitalInput di(1);//channel 1 if (di->Get()) { ... } |
Re: Joystick Trigger Programming
Is there not a GetTrigger function in Joystick.h?
I don't have the header files here, but i think there is one. (you can check) EDIT: in Joystick.h, there is a GetTrigger function, as well as just the normal numbered 1-11 buttons Code:
virtual bool GetTrigger(JoystickHand hand = kRightHand);Byteit is good on the limit switch too,I think not sure, that the Jaguars also have built in limit switch support, no code required |
Re: Joystick Trigger Programming
Thank you all
|
Re: Joystick Trigger Programming
Quote:
|
Re: Joystick Trigger Programming
You could use the GetTrigger function or use Button1 if you're using the standard joystick...
|
Re: Joystick Trigger Programming
You can use the GetTrigger() function. Something like this:
Code:
Joystick *stick;Code:
Joystick *stick; |
| All times are GMT -5. The time now is 02:42. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi