-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data is not correct in TO keycode #746
Comments
The key code range of That is, by the qmk/qmk_firmware#17989, Remap and VIA app are currently supporting firmwares which were built using the source code set before merging the pull request. And they currently can't support firmwares which are built using the source code set after merging the pull request. Because there is no method to know what the version number and the revision number is the connected keyboard, we have a policy that we follow the latest (= master branch) source code set of QMK Firmware. As the result, we intend to fix this issue to follow the behavior of latest source code of QMK Firmware. That is, we will change the |
日本語での記載失礼します。 |
@Ftakao TO(n) は原因が判明しているので対応可能ですが、MO(n) については QMK Firmware と Remap ではキーコードに差がない( 0x5100 - 0x51FF )ために問題は生じない、という認識でいます。TO(n) の不具合に影響して MO(n) も不具合となってしまっているのか、電源投入後に TO(n) を一切使わずに MO(n) だけを使った際でも問題が発生するのか、今一度確認をお願いできますでしょうか? |
I recognized that the TO(n) key codes are different from them of QMK Firmware. But, I think that other key codes are same as QMK Firmware. Therefore, I will fix the TO(n) problem against this issue. |
The layer index in
TO
keycode is seems to be not correct.TO
keycode has layer index in lower 8bits.But, remap reads/writes only lower 4bits.
If you write
TO(0)
keycode, raw data should be0x5000
, but raw data is0x5010
.Similarly, remap writes
TO(2) = 0x5002
asTO(18) = 0x5012
,TO(4) = 0x5004
asTO(20) = 0x5014
, and so on...And, remap reads
TO(16) = 0x5010
asTO(0) = 0x5000
.Similarly, remap reads
TO(18) = 0x5012
asTO(2) = 0x5002
,TO(20) = 0x5014
asTO(4) = 0x5004
, and so on...In below code,
TO(0)
is defined20496 = 0x5010
.https://github.com/remap-keys/remap/blob/main/src/services/hid/KeycodeInfoList.ts#L3329-L3339
In QMK,
TO
code is defined here.https://github.com/qmk/qmk_firmware/blob/master/quantum/quantum_keycodes.h#L42
And,
TO(layer)
macro is defined here.https://github.com/qmk/qmk_firmware/blob/master/quantum/quantum_keycodes.h#L803
LM
,LT
use lower 4bits as layer index.Other layer keycodes use lower 8bits.
I think these layer keycodes has same issue.
My firmware targets RP2040.
I can send firmware to you if you need it to verify.
Some of configs are below.
The text was updated successfully, but these errors were encountered: