Fixes: Invisible toolbar views on iOS 12-13

Correct GLFWInputImplementation.java location
Add back Swipeable Hotbar option (removed by accident)
This commit is contained in:
Duy Tran Khanh authored and khanhduytran0 committed 2023-03-10 07:11:45 +07:00
1 parent 7fd4b7902b
commit 881dc5cf54
3 files changed
+18 -3

No files matched your search

@@ -178,7 +178,6 @@ public class GLFWInputImplementation implements InputImplementation {
last_event_nanos = nanos;
}
public void putKeyboardEvent(int keycode, byte state, int ch, long nanos, boolean repeat) {
//System.out.println("LWJGL2: debug keyboard=" + keycode + ", state=" + state + ", repeat=" + repeat);
key_down_buffer[keycode] = state;
keyboardEvent.clear();
keyboardEvent.putInt(keycode).put(state).putInt(ch).putLong(nanos).put(repeat ? (byte)1 : (byte)0);