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.
Problem with teensy repeated key presses
Re: Problem with teensy repeated key presses
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:
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.
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
Does anyone have an idea about this?
Thanks.
-
- Posts: 219
- Joined: Wed Nov 16, 2016 3:04 am
- Location: UK
- Has thanked: 3 times
- Been thanked: 73 times
Re: Problem with teensy repeated key presses
i have this issue also with the A key makes it difficult to navigate
Re: Problem with teensy repeated key presses
[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...)
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...)
- wermy
- Site Admin
- Posts: 1346
- Joined: Tue May 03, 2016 8:51 pm
- Has thanked: 620 times
- Been thanked: 1322 times
- Contact:
Re: Problem with teensy repeated key presses
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.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...)

In gameplay, from my experience anyway, it doesn't affect anything (it's just like you're playing with a keyboard).
Who is online
Users browsing this forum: No registered users and 1 guest