Shift hold

Hi,

I’m a bit of a newbie here so hopefully this isn’t a stupid question.

I’m trying to create a translator(s) that toggles holding down the SHIFT key on press, then toggles release on the next press. The specific use case is for holding down SHIFT to sprint in games and such. I’ve been looking online and watching videos and reading the help sections and so far all I’ve been able to achieve is holding down the shift key permanently.

What would be the particular setup for this sort of functionality?

Thanks!

Hi and welcome to the Bome community!

The attached project should work. You will need to assign the alias to your actual MIDI controller input. Mine is assigned as follows:

You can learn more about aliases from this tutorial.

Translator 1.0 (Preset 1 translator 0) will toggle the value of global variable “ga”. If ga==1 then it will send shift key (down), otherwise it does nothing.

Here are the rules:

ga=ga^1
if ga==0 then exit rules, skip Outgoing Action

Translator 1.1 will send shift key (up) if ga=0 otherwise it does nothing.

Here are the rules:

if ga==1 then exit rules, skip Outgoing Action

The game application must be focused for this to work and some games do not allow artificial keystrokes so it may or may not work for you.

Also, you may need to change the incoming trigger (note and MIDI CH) for both translators depending on what your MIDI controller sends.

Shift-Toggle.bmtp (1.9 KB)

Steve Caldwell
Bome Customer Care


Also available for paid consulting services: bome@sniz.biz