|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
"GetTrigger(KHand hand)" what???
in the joystick class, the member function GetTrigger(), how do i use this. I am using it in the following code:
if (m_FireStick->GetTrigger()) { solenoid->Set(true); solenoid->Set(false); } when i press the trigger, the code isn't executing. what am i doing wrong |
|
#2
|
|||
|
|||
|
Re: "GetTrigger(KHand hand)" what???
Quote:
Code:
if (m_FireStick->GetTrigger())
{
solenoid->Set(true);
}else{
solenoid->Set(false);
}
|
|
#3
|
||||
|
||||
|
Re: "GetTrigger(KHand hand)" what???
the code in the brackets is fine. it runs when i use if(GetRawButton(button))
It doesn't work when i use the GetTrigger(); do i need to use any paramiters because i know that in the templet or tool tip it says hand so i know that is fir the generic HID but do i need to insert anything. I dont get any build errors when I dont use paramiters. Please ignore the poor spelling, there is a reason why i program on a computer...spell check ~xtreampb~ Pitt Pirates 2642 |
|
#4
|
|||||
|
|||||
|
Re: "GetTrigger(KHand hand)" what???
How do you know it runs? It looks like it won't have any noticeable effect. It turns on a solenoid output so briefly that there should be no time for a mechanical component to respond before it's turned off again.
|
|
#5
|
||||
|
||||
|
Re: "GetTrigger(KHand hand)" what???
so are you saying that i need to use like a wait(0.5) before it set it to false again. I am changing it so fast because it is going to be out "plundger" and it needs to reload itself as fast as possible or else the other balls in quene will get jamed behind the launcher (especially if the person working the fire control doesn't know what he/she is doing)
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Analog inputs not "working" — I only detect "noise" | keehun | Programming | 11 | 31-12-2008 19:01 |
| Championship Event - Where the "Random" Match Sorting Really "Shines" | Travis Hoffman | Championship Event | 57 | 19-04-2007 08:06 |
| New NEMO White Papers! "Creating a Killer Packet" and "25 Ways to Sponsor" | Jessica Boucher | Team Organization | 0 | 10-08-2005 10:55 |
| "Thunderbirds" Vs. "Team America" Which one will rule the box office? | Elgin Clock | Chit-Chat | 3 | 07-09-2004 19:53 |
| how tall is the ramp when in "up" and "balanced" position??? | archiver | 2001 | 1 | 24-06-2002 00:54 |