a) Set the port to the port you will connect to wire to. (0 index based)3) Create a Logic Node for each button you want to map by doing...
b) Set auto-average to 0, or at most a value of 5 or else your presses will "linger" and trigger multiple button presses
4) Save file in MDX directory, and run MDX, and enjoy.
a) Place down your analogue input module, and a number module with the lowest
value recorded for that button and a little less (but not so much less it hits the upper bound of another button).
b) Drop down a greater than or equal to module
c) Connect the analogue input module to the top node of the greater than module, and connect the number module to the lower node of the greater than module.
d) Place down your analogue input module (same as step a
), and a number module with the highest
value recorded for that button and a little more (but not so much more it hits the lower bound of another button).
e) Drop down a less than or equal to module
f) Connect the analogue input module to the top node of the less than module, and connect the number module to the lower node of the less than module.
g) Drop down an AND module
h) Connect the greater than module and the less than module to the AND module in any order (AND is not picky)
i) Place the logic output module (big arrow) and connect to the output of the AND module to finish the complete if/then statement
j) Click the Then/Do icon to add/edit then do statements
k) Add a then do statement to send a key
I) EITHER choose "send key" and then setup the target ID and class of the window you want to send to. This will seek out that window, and target a keypress to that window only.
II) OR choose "send key to foreground" and then choose your key. This will send a key blindly to whatever application is ontop, with no control that way. If the app is not ontop and focused or does not accept global hotkeys, nothing will happen.
l) Choose the properties, and name it so you can keep track
m) Choose it to fire on a timer (logic timer is a good choice for this)
n) Set a minimum delta vote time. This is the time between votes (key presses). Because you will probably be reading the ports in every 50ms or so, but that would cause some crazy keys to be send every 50ms. So set the vote time to something that works for you like 500ms, or 1000ms (1 second). You will need to play with this, and can be different for each button. Maybe Play/Pause should be higher than say Fastforward which should be shorter. All user configurable
o) Save If/Then node