Available Methods
- GLFW_KEY_ESCAPE
- GLFW_KEY_ENTER
- GLFW_KEY_RIGHT_SHIFT
- GLFW_KEY_U
- glfwInit ( )
- glfwSetWindowSize ( )
- GLFW_KEY_DELETE
- GLFW_KEY_N
- glfwSetScrollCallback ( )
- glfwWindowShouldClose ( )
- GLFW_KEY_I
- GLFW_KEY_C
- glfwSetKeyCallback ( )
- GLFW_KEY_KP_5 ( )
- glfwSwapBuffers ( )
- glfwGetMouseButton ( )
- GLFW_KEY_LEFT
- GLFW_KEY_2 ( )
- GLFW_KEY_P
- glfwGetKeyName ( )
- GLFW_KEY_LEFT_ALT
- GLFW_KEY_F2 ( )
- GLFW_KEY_G
- glfwSetCursorPosCallback ( )
- GLFW_KEY_KP_ENTER
- glfwSetWindowIconifyCallback ( )
- glfwGetWindowSize ( )
- GLFW_KEY_F3 ( )
- glfwSetWindowPos ( )
- GLFW_KEY_UP
- glfwSetDropCallback ( )
- glfwDestroyCursor ( )
Related Classes
- java.io.File
- java.util.regex.Pattern
- java.util.regex.Matcher
- java.lang.reflect.Field
- java.util.function.Consumer
- org.lwjgl.opengl.GL11
- com.badlogic.gdx.Gdx
- net.minecraft.client.settings.KeyBinding
- com.badlogic.gdx.utils.GdxRuntimeException
- org.spongepowered.asm.mixin.injection.At
- net.minecraft.client.gui.screen.Screen
- org.spongepowered.asm.mixin.injection.Redirect
- org.lwjgl.opengl.GL
- net.minecraft.text.Text
- net.minecraft.client.MinecraftClient
- org.lwjgl.PointerBuffer
- org.lwjgl.glfw.GLFWKeyCallback
- org.lwjgl.glfw.GLFWCursorPosCallback
- net.minecraft.util.hit.BlockHitResult
- org.joml.Vector3f
- org.lwjgl.glfw.GLFWMouseButtonCallback
- net.fabricmc.api.EnvType
- com.badlogic.gdx.utils.SharedLibraryLoader
- net.fabricmc.api.Environment
- org.lwjgl.glfw.GLFWVidMode
Java Code Examples for org.lwjgl.glfw.GLFW#glfwGetKeyName()
The following examples show how to use
org.lwjgl.glfw.GLFW#glfwGetKeyName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GLFWContextCreator.java From settlers-remake with MIT License | 5 votes |
@Override public void invoke(long window, int key, int scancode, int action, int mods) { String name = GLFW.glfwGetKeyName(key, scancode); if(name == null) { name = keys.get(key); } if(action == GLFW.GLFW_PRESS) { startKeyEvent(name); } else if(action == GLFW.GLFW_RELEASE){ endKeyEvent(name); } }
Example 2
Source File: Variables.java From The-5zig-Mod with MIT License | 4 votes |
@Override public String getKeyDisplayStringShort(int key) { return key < 0 ? "M" + (key + 101) : (key < 256 ? GLFW.glfwGetKeyName(key, -1) : String.format("%c", (char) (key - 256)).toUpperCase()); }
Example 3
Source File: KeyEvent.java From LWJGUI with MIT License | 4 votes |
public String getKeyName() { return GLFW.glfwGetKeyName(key, scancode); }