Skip to content

Commit 141d6bb

Browse files
committed
#1276 fix: use 1000 as the key code scancode offset instead of getMaxKeycode
so it is static and never changes value potentially breaking the trigger detection
1 parent 6dd128b commit 141d6bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: app/src/main/java/io/github/sds100/keymapper/system/inputevents/InputEventUtils.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,7 @@ object InputEventUtils {
689689
/**
690690
* Used for keyCode to scanCode fallback to go past possible keyCode values
691691
*/
692-
val KEYCODE_TO_SCANCODE_OFFSET: Int
693-
get() = KeyEvent.getMaxKeyCode() + 1
692+
val KEYCODE_TO_SCANCODE_OFFSET: Int = 1000
694693

695694
/**
696695
* Create a text representation of a key event. E.g if the control key was pressed,

0 commit comments

Comments
 (0)