mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
attempt to reduce memory footprint of the map.
This commit is contained in:
parent
dcd0f5d0d3
commit
691bf427cc
@ -12,12 +12,12 @@ import org.lwjgl.glfw.*;
|
|||||||
public class AndroidLWJGLKeycode {
|
public class AndroidLWJGLKeycode {
|
||||||
// Fix double letters on MC 1.9 and above
|
// Fix double letters on MC 1.9 and above
|
||||||
public static boolean isBackspaceAfterChar = true;
|
public static boolean isBackspaceAfterChar = true;
|
||||||
public static final ArrayMap<Integer, Integer> androidToLwjglMap;
|
public static final ArrayMap<Integer, Short> androidToLwjglMap;
|
||||||
public static String[] androidKeyNameArray;
|
public static String[] androidKeyNameArray;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
// Mapping Android Keycodes to LWJGL Keycodes
|
// Mapping Android Keycodes to LWJGL Keycodes
|
||||||
androidToLwjglMap = new ArrayMap<Integer, Integer>();
|
androidToLwjglMap = new ArrayMap<>();
|
||||||
|
|
||||||
// 0-9 keys
|
// 0-9 keys
|
||||||
androidToLwjglMap.put(KeyEvent.KEYCODE_0, LWJGLGLFWKeycode.GLFW_KEY_0);
|
androidToLwjglMap.put(KeyEvent.KEYCODE_0, LWJGLGLFWKeycode.GLFW_KEY_0);
|
||||||
|
@ -33,10 +33,10 @@ package net.kdt.pojavlaunch;
|
|||||||
public class LWJGLGLFWKeycode
|
public class LWJGLGLFWKeycode
|
||||||
{
|
{
|
||||||
/** The unknown key. */
|
/** The unknown key. */
|
||||||
public static final int GLFW_KEY_UNKNOWN = 0; // should be -1
|
public static final short GLFW_KEY_UNKNOWN = 0; // should be -1
|
||||||
|
|
||||||
/** Printable keys. */
|
/** Printable keys. */
|
||||||
public static final int
|
public static final short
|
||||||
GLFW_KEY_SPACE = 32,
|
GLFW_KEY_SPACE = 32,
|
||||||
GLFW_KEY_APOSTROPHE = 39,
|
GLFW_KEY_APOSTROPHE = 39,
|
||||||
GLFW_KEY_COMMA = 44,
|
GLFW_KEY_COMMA = 44,
|
||||||
@ -89,7 +89,7 @@ public class LWJGLGLFWKeycode
|
|||||||
GLFW_KEY_WORLD_2 = 162;
|
GLFW_KEY_WORLD_2 = 162;
|
||||||
|
|
||||||
/** Function keys. */
|
/** Function keys. */
|
||||||
public static final int
|
public static final short
|
||||||
GLFW_KEY_ESCAPE = 256,
|
GLFW_KEY_ESCAPE = 256,
|
||||||
GLFW_KEY_ENTER = 257,
|
GLFW_KEY_ENTER = 257,
|
||||||
GLFW_KEY_TAB = 258,
|
GLFW_KEY_TAB = 258,
|
||||||
@ -182,7 +182,7 @@ public class LWJGLGLFWKeycode
|
|||||||
|
|
||||||
|
|
||||||
/** Mouse buttons. See <a target="_blank" href="http://www.glfw.org/docs/latest/input.html#input_mouse_button">mouse button input</a> for how these are used. */
|
/** Mouse buttons. See <a target="_blank" href="http://www.glfw.org/docs/latest/input.html#input_mouse_button">mouse button input</a> for how these are used. */
|
||||||
public static final int
|
public static final short
|
||||||
GLFW_MOUSE_BUTTON_1 = 0,
|
GLFW_MOUSE_BUTTON_1 = 0,
|
||||||
GLFW_MOUSE_BUTTON_2 = 1,
|
GLFW_MOUSE_BUTTON_2 = 1,
|
||||||
GLFW_MOUSE_BUTTON_3 = 2,
|
GLFW_MOUSE_BUTTON_3 = 2,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user