Problem with teensy repeated key presses

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
Post Reply
User avatar
razor
Posts: 40
Joined: Thu May 05, 2016 10:17 am
Location: San Diego, CA
Been thanked: 2 times

Problem with teensy repeated key presses

Post by razor » Sun May 15, 2016 1:01 am

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.

User avatar
NyaSu
Posts: 11
Joined: Wed May 18, 2016 11:17 am
Has thanked: 3 times

Re: Problem with teensy repeated key presses

Post by NyaSu » Sun Dec 18, 2016 10:09 am

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.

jellybelly
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

Post by jellybelly » Sun Dec 18, 2016 11:34 am

i have this issue also with the A key makes it difficult to navigate

User avatar
NyaSu
Posts: 11
Joined: Wed May 18, 2016 11:17 am
Has thanked: 3 times

Re: Problem with teensy repeated key presses

Post by NyaSu » Sun Dec 18, 2016 10:53 pm

[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...)

User avatar
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

Post by wermy » Mon Dec 19, 2016 6:40 am

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).
ImageImageImageImage

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest