Page 1 of 1

Problem with teensy repeated key presses

Posted: Sun May 15, 2016 1:01 am
by razor
Hey guys,

Seeing an issue with the Teensy and not sure how to solve. When holding down a button, the teensy should should send the same key repeatedly, no?

In some games, holding down a button will let you fire repeatedly but if the teensy isn't sending the key repeatedly, repeated firing won't work.

Re: Problem with teensy repeated key presses

Posted: Sun Dec 18, 2016 10:09 am
by NyaSu
Hello,

I would like to know how you did that, as I encounter the opposite problem... this is what happens when I press the buttons only once:

Code: Select all

qdszlllllllpppppokkokokkkkoookllllllllppxxwx
lllppokdqzsxxxxwxwwlpko
See the multiple entries? I can assure you that the teensy *IS* sending the key repeatedly, and it works way too much for me... I'm afraid games will end up unplayable...

Does anyone have an idea about this?

Thanks.

Re: Problem with teensy repeated key presses

Posted: Sun Dec 18, 2016 11:34 am
by jellybelly
i have this issue also with the A key makes it difficult to navigate

Re: Problem with teensy repeated key presses

Posted: Sun Dec 18, 2016 10:53 pm
by NyaSu
[mention]wermy[/mention], would it be possible to change the teensy code to limit repetition?

Like some kind of threshold to NOT send a similar key if the last one was sent less than "x" milliseconds earlier? (I guess "x" would have to be empirical guessed...)

Re: Problem with teensy repeated key presses

Posted: Mon Dec 19, 2016 6:40 am
by wermy
NyaSu wrote:[mention]wermy[/mention], would it be possible to change the teensy code to limit repetition?

Like some kind of threshold to NOT send a similar key if the last one was sent less than "x" milliseconds earlier? (I guess "x" would have to be empirical guessed...)
It actually is only sending an event one time, the repeated keys you are seeing are just as if you held down a key on the keyboard. How fast it starts repeating keys, and how quickly it repeats them is up to the OS. :)

In gameplay, from my experience anyway, it doesn't affect anything (it's just like you're playing with a keyboard).