PDA

View Full Version : How do you keep a button pressed - i.e. the trim function in Black Shark



Stuart72
8th April 2010, 11:26 PM
I am currently trying to program my CH products for the Blackshark game.

What I want to do is ...when you trim the aircraft, the manual says to press the trim button (t) and keep it pressed. Set the collective to the position you want and release the trim button.

How do you emulate this using the CH throttle. I want to use the shifted button 2 on my throttle as the trim key button. I would assume normal operations would be that once the shifted button 2 is pressed it sends the key stroke once regardless of how long I am holding it.

I got this command ----> %DEFINE TrimBut JS1.B13
but am not sure how to program this in the CM and on the throttle.

Bob Church
14th April 2010, 12:43 AM
Hi Stuart72,

HID keyboards (which the CM emulates) only send a report when the button changes state. There is no repeat, the system fakes it while you hold the key down so it looks okay in NotePad, etc. but really all that happens is that when you press the key, a report is sent that tells the OS that it's down. When you release it, a similar report is sent that doesn't include the key and so the system sees it as released. Aside from just holding the key down, you can use CMS and a Toggle device. Then it's "push on, push off". If you need to hold it while you're doing other things, that might be easier.

Best regards,

- Bob

The StickWorks
http://www.stickworks.com