workinghard / jslisten

listen to gamepad inputs and trigger a command
GNU General Public License v3.0
31 stars 18 forks source link

Implement key repeat #16

Open rien333 opened 5 years ago

rien333 commented 5 years ago

It doesn't really fit your personal use case I suppose, but I'm using jslisten in a similar manner to joystick mappers as qjoypad and antimicro - i.e. I map a specific button press to an action.

Currently, I'm using this mapping mechanism to control my computer. However, holding down the button, contrary to basically any joystick mapper has tried, only sends the key once. Pretty annoying if you have to e.g. scroll.

Any way you could implement a check to see if buttons are held? (doesn't really seem to fit your initial password like service)

workinghard commented 5 years ago

It always impress me how people are using this software and it's great to see any use case. From what I understand this enhancement would require additional options "repeat time"(in ms), "repeatable"(true/false) and be careful with the other current ongoing enhancement #11 Don't see any reason why not include this option. Will put it on a list.

rien333 commented 5 years ago

It's pretty neat honestly! Thanks for taking the time to make this. I'm currently experimenting with the code a little myself. My c is not what it what once was, but maybe I will stumble upon a decent solution myself.

workinghard commented 5 years ago

Feel free to create any pull requests. It doesn't need to be perfect, although it's always preferred :).