diff options
Diffstat (limited to 'srcs/juloo.keyboard2/KeyboardData.java')
| -rw-r--r-- | srcs/juloo.keyboard2/KeyboardData.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/KeyboardData.java b/srcs/juloo.keyboard2/KeyboardData.java index 81b6870..f0b1d1b 100644 --- a/srcs/juloo.keyboard2/KeyboardData.java +++ b/srcs/juloo.keyboard2/KeyboardData.java @@ -194,6 +194,18 @@ class KeyboardData { return new Key(key0, key1, key2, key3, key4, width * s, shift, edgekeys); } + + public KeyValue getValue(int index) + { + switch (index) + { + case 1: return key1; + case 2: return key2; + case 3: return key3; + case 4: return key4; + default: case 0: return key0; + } + } } public static abstract interface MapKeys extends Function<KeyValue, KeyValue> { } |
