]> git.donarmstrong.com Git - qmk_firmware.git/commit
speeding up (un)register_code16
authorSjB <steve@sagacity.ca>
Sat, 21 Jan 2017 07:01:55 +0000 (02:01 -0500)
committerSjB <steve@sagacity.ca>
Tue, 24 Jan 2017 04:16:57 +0000 (23:16 -0500)
commit2b3859937b1e7f96b684408d31ff12a4e682f7ee
tree07316357851485e07f741e49853f01fa1349a065
parent841d7e6a1d74b1fc45575ed551132ec27353ebf3
speeding up (un)register_code16

In register_code16 and unregister_code16 we call register_code and
unregister_code twice, once for the mods and once for the keycode.
The (un)register_code have many check to see that keycode we have sent
however because we know that we are sending it a mods key, why not
just skip all of it and call (un)register_mods instead. This will skip
alot of checks and should speedup the loop a little.
quantum/quantum.c