StreamController / OSPlugin

GNU General Public License v3.0
4 stars 1 forks source link

Repeat keypress on button hold #5

Closed Danie10 closed 5 months ago

Danie10 commented 5 months ago

Describe the feature idea This type of feature is used often in games. In my case when playing SnowRunner the crane controls to move the crane left, right, up, down, extend winch, etc are all holding the particular keyboard key down. On release, the movement stops.

For this game it is usually just a single global shortcut key eg. the S or the W or the F that is used to execute these movements. They're difficult to remember, so are ideal to put on the Streamdeck with associated icons.

Many games also use the A, W, S, and D buttons for forwards, left, back, and right for example. They are not single key presses, but also hold until released.

Additional context It could possibly be added as an option for Hotkey (OS) where the additional option is a toggle to "repeat on hold". If you look at the screenshot below, I did a long press in the Keys Config. Although this can't really be used and controlled, the behaviour in game is like a short hold, as the crane clearly moves a bit further than a single key press (button press with a single key press).

StreamConroller

Core447 commented 5 months ago

Should be fixed with 8a4bb50093ef4c79b975162ce99ad0cc74c6edbe. If it works for you, I'll close the issue

Danie10 commented 5 months ago

Thanks working 100% now. "Hold until release" is working for me, but I like that you also added the option for repeat while holding. You've covered all the bases!