Repository navigation
Threshold of movement before activating a mouse layer aka AUTO_MOUSE_THRESHOLD - #886
Conversation
|
CIワークフローの承認待ちのまま時間が経過し、実行がタイムアウトしたため、再トリガーのため一旦クローズして再オープンします。 |
|
実装、ありがとうございます。QMK本体の
という順序になるため、 実機でのテストでは意図通りに動いているとのことですが、念のため「ゆっくりカーソルを動かした場合にも閾値に到達して発動するか」を確認いただけますか? もし複数サイクルにまたがる累積が必要な設計意図であれば、リセットの位置を見直す必要があるかもしれません。 |
…low and steady. Reworked
|
ご指摘ありがとうございます!おっしゃる通りだと思います。私は主にタイピング中に起きる小さな衝撃でマウスレイヤーが発動しないようにする目的でこの変更を使っており、閾値も小さく設定していたため、問題に気づいていませんでした。 ビルドしてキーボードに書き込み、小さな衝撃ではマウスレイヤーが発動しないことは引き続き確認できました。ただし、より大きな閾値でのテストはしていません。 ご確認いただきありがとうございました。 |
|
修正ありがとうございます、ロジックは良くなりました。ただ、CIが落ちています。
新しく追加した 修正いただければ再度CIを確認します。 |
|
ご指摘ありがとうございます。auto_mouse_activation() を #ifdef POINTING_DEVICE_AUTO_MOUSE_ENABLE で囲むよう修正しました。 |
Yowkees
left a comment
There was a problem hiding this comment.
2回のレビューラウンドにお付き合いいただきありがとうございました。total_motionのリセットタイミング、one47でのビルド失敗(POINTING_DEVICE_AUTO_MOUSE_ENABLE未定義時)、両方とも適切に修正していただきました。CIも全機種・全キーマップで成功しています。マージします!
Renewed version of #563 with latest from
Yowkees/keyball:mainThis change re-implements the "auto mouse threshold" parameter/feature from the QMK firmware. This feature defines an amount of pointing device (trackball in the case of keyball) movement needed in order to activate a mouse layer. This can be helpful in preventing accidental mouse layer activation while typing. The default threshold is 10 units - tune to preference with
KEYBALL_AUTO_MOUSE_THRESHOLD.Built locally on my keyball61 and works as expected.
Reference:
https://docs.qmk.fm/features/pointing_device#config-h-options
https://github.com/qmk/qmk_firmware/blob/1e340cd59c1012d5f4d48b483b5c14e3e99b2bc3/quantum/pointing_device/pointing_device_auto_mouse.h#L46