diff options
| author | Lulonaut <67191924+Lulonaut@users.noreply.github.com> | 2022-05-15 11:55:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-15 11:55:11 +0200 |
| commit | 9f372b3f8b5f07b3dbc6c010e064924d5b4820a4 (patch) | |
| tree | 54ed21aae68b0076e2f824a495a510bc4fb7f091 /src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | |
| parent | e2bbc83d80305e7b20292cb6a0fbcfad0fda4eed (diff) | |
| download | notenoughupdates-9f372b3f8b5f07b3dbc6c010e064924d5b4820a4.tar.gz notenoughupdates-9f372b3f8b5f07b3dbc6c010e064924d5b4820a4.tar.bz2 notenoughupdates-9f372b3f8b5f07b3dbc6c010e064924d5b4820a4.zip | |
More Keyboard fixes (#130)
* Allow holding down keys in StorageOverlay and Item list searchbar
* don't sleep on the render thread
* Remove most calls to Keyboard#enableRepeatEvents
Also remove my flawless implementation in the render methods since it's not needed anymore
* remove autoclicker
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java index 201cec86..ff8187f2 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java @@ -212,7 +212,7 @@ public class NEUOverlay extends Gui { private boolean redrawItems = false; - private boolean searchBarHasFocus = false; + public static boolean searchBarHasFocus = false; private static final GuiTextField textField = new GuiTextField(0, null, 0, 0, 0, 0); private static final int COMPARE_MODE_ALPHABETICAL = 0; @@ -1044,7 +1044,6 @@ public class NEUOverlay extends Gui { */ public boolean keyboardInput(boolean hoverInv) { if (Minecraft.getMinecraft().currentScreen == null) return false; - Keyboard.enableRepeatEvents(true); int keyPressed = Keyboard.getEventKey() == 0 ? Keyboard.getEventCharacter() + 256 : Keyboard.getEventKey(); |
