From c85e9a91d1922557fec919d341ab43037b5ee48d Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Mon, 21 Feb 2022 00:24:57 +0100 Subject: Improve modulated key repeat Change the formula: don't use an external constant, add a state. It's now the ratio between where the finger is at the first repeat and where it is now. Keep the repeat going when swiping into an other key. Currently only for arrows: It's now possible to go from an arrow to an other without waiting again for the key repeat timeout. The backspace and delete keys don't work well with this. --- srcs/juloo.keyboard2/KeyValue.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'srcs/juloo.keyboard2/KeyValue.java') diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 15a3d18..66029a7 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -245,8 +245,8 @@ class KeyValue addEventKey("page_down", "⇟", KeyEvent.KEYCODE_PAGE_DOWN); addEventKey("home", "↖", KeyEvent.KEYCODE_MOVE_HOME); addEventKey("end", "↗", KeyEvent.KEYCODE_MOVE_END); - addEventKey("backspace", "⌫", KeyEvent.KEYCODE_DEL, FLAG_PRECISE_REPEAT); - addEventKey("delete", "⌦", KeyEvent.KEYCODE_FORWARD_DEL, FLAG_PRECISE_REPEAT); + addEventKey("backspace", "⌫", KeyEvent.KEYCODE_DEL); + addEventKey("delete", "⌦", KeyEvent.KEYCODE_FORWARD_DEL); addEventKey("insert", "Ins", KeyEvent.KEYCODE_INSERT); addEventKey("f1", "F1", KeyEvent.KEYCODE_F1); addEventKey("f2", "F2", KeyEvent.KEYCODE_F2); -- cgit v1.2.3