diff options
| author | Jules Aguillon | 2022-04-30 23:17:20 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2022-04-30 23:17:20 +0200 |
| commit | 84af72c2229025a451c861ac128ea585cbb72954 (patch) | |
| tree | 3d1c80f70ffd2fbb1cd8c8857ef45c300a0b1f41 /srcs/juloo.keyboard2/Keyboard2View.java | |
| parent | 2df476455770d45d1fe9534365a3f8d88fca60e9 (diff) | |
| download | unexpected-keyboard-84af72c2229025a451c861ac128ea585cbb72954.tar.gz unexpected-keyboard-84af72c2229025a451c861ac128ea585cbb72954.zip | |
Record activated modifiers on key down
The View no longer keeps flags for something other than rendering.
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2View.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2View.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index 11cf970..1b08cf3 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -67,33 +67,33 @@ public class Keyboard2View extends View invalidate(); } - public KeyValue onPointerDown(KeyValue k) + public KeyValue onPointerDown(KeyValue k, int flags) { - k = KeyModifier.handleFlags(k, _flags); + k = KeyModifier.handleFlags(k, flags); invalidate(); if (k != null) vibrate(); return k; } - public KeyValue onPointerSwipe(KeyValue k) + public KeyValue onPointerSwipe(KeyValue k, int flags) { - k = KeyModifier.handleFlags(k, _flags); + k = KeyModifier.handleFlags(k, flags); invalidate(); if (k != null) vibrate(); return k; } - public void onPointerUp(KeyValue k) + public void onPointerUp(KeyValue k, int flags) { - _config.handler.handleKeyUp(k, _flags); + _config.handler.handleKeyUp(k, flags); invalidate(); } - public void onPointerHold(KeyValue k) + public void onPointerHold(KeyValue k, int flags) { - _config.handler.handleKeyUp(k, _flags); + _config.handler.handleKeyUp(k, flags); } public void onPointerFlagsChanged() |
