When I press the strumbar of the GuitarHero controller, an incoming message 91 79 7F arrives. It emulates two outgoing messages: keystroke "right" and 91 27 60.
I need to: when the Red button is pressed (91 7E 7F), pressing the strumbar should only emulate keystroke "right".
As I understand it, the incoming message 91 7E 7F can be assigned the value of the variable.
If variable is not equal to 7e, then the incoming message 91 79 7F emulates two outgoing messages (keystroke “right” and 91 27 60), and if variable is 7e, then only keystroke “right”.
But I do not know how to do this in the form of rules.
Hi, hopefully the following example will work. I assume when you release the button which is 91 7E 7F on push then it sends 91 7E 00. If not, we need to figure out what is sent when the button is released.
It works this way.
The first translator looks at the incoming message 91 7E qq (where qq is the value of 7F for pushed and 0 for released). If pushed the global variable ga is set to a 1, if release, it is set to 0
The second translator monitors for 91 79 7F but there is a rule to only send 91 27 60 if ga=1 (the button in the previous step is pushed)
The third translator unconditionally sends keystroke RIGHT when input 91 79 7F is seen (same incoming trigger but different outgoing action)
I hope this is what you were looking for.
Steve Caldwell
Bome Q and A Moderator and
Independent Bome Consultant/Specialist bome@sniz.biz