qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
18.09k stars 38.89k forks source link

QMK repeat rate and repeat delay #15710

Closed givedrug closed 2 years ago

givedrug commented 2 years ago

I'd like to change two parameters. 1、Repeat rate. If you hold down a key (eg. A), after a short time that key gets repeatedly sent (eg. the result is aaaaaaaaaaaaaaaaa). I'd like to change the rate at which the repeated output is sent (eg. to send more/less characters over a given time interval). 2、Repeat delay. How long you have to wait until a key is consired "held down" (eg. to go from 200 milliseconds to 60 milliseconds, or whatever). How can I do this with the QMK/TMK firmware? I tried messing with #define TAPPING_TERM 200, but it didn't work.

i know It's not an option that can be set. but can i use some custom handling/code to repeat keys at a particular rate.

t-8ch commented 2 years ago

Normally this logic is all done by the operating system on the host side. The keyboard only reports "key pressed" and "key not pressed".

You can also emulate this in QMK but that's not done by default.

See also: https://teddit.net/r/olkb/comments/8e5c1c/qmk_repeat_rate_and_repeat_delay/ https://teddit.net/r/KeyboardLayouts/comments/pg85sh/repeat_last_key_in_qmk/ https://teddit.net/r/olkb/comments/hxmtkp/how_to_let_qmk_repeat_the_keypress/

givedrug commented 2 years ago

Normally this logic is all done by the operating system on the host side. The keyboard only reports "key pressed" and "key not pressed".

You can also emulate this in QMK but that's not done by default.

See also: https://teddit.net/r/olkb/comments/8e5c1c/qmk_repeat_rate_and_repeat_delay/ https://teddit.net/r/KeyboardLayouts/comments/pg85sh/repeat_last_key_in_qmk/ https://teddit.net/r/olkb/comments/hxmtkp/how_to_let_qmk_repeat_the_keypress/

thx, i'll have a try!

KoenGoe commented 2 years ago

Normally this logic is all done by the operating system on the host side.

True for keycodes that actually go to the OS, but for instance for RGB_VAIit might be nice to have such functionality built in

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs. For maintainers: Please label with bug, in progress, on hold, discussion or to do to prevent the issue from being re-flagged.

github-actions[bot] commented 2 years ago

This issue has been automatically closed because it has not had activity in the last 30 days. If this issue is still valid, re-open the issue and let us know. // [stale-action-closed]