mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 08:49:41 +00:00
Disabled script area textbox typing when a matching keycode KeyPreset is down
This commit is contained in:
1 parent
c4d5178472
commit
85d79dd786
2 files changed
+16
-3
No files matched your search
@@ -24,6 +24,15 @@ public class KeyPresetManager {
|
||||
return preset;
|
||||
}
|
||||
|
||||
public boolean hasMatchingKeyPressed(int keyCode) {
|
||||
for (KeyPreset key : keys) {
|
||||
if (key.currentState.matches(keyCode, true))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public void tick() {
|
||||
for (KeyPreset key : keys)
|
||||
key.tick();
|
||||
|
||||
Reference in new issue
Block a user