Class GLFWRenderModuleKeyboardInput

java.lang.Object
io.codetoil.curved_spacetime.render.glfw.GLFWRenderModuleKeyboardInput
All Implemented Interfaces:
RenderModuleKeyboardInput, org.lwjgl.glfw.GLFWKeyCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer

public class GLFWRenderModuleKeyboardInput extends Object implements RenderModuleKeyboardInput, org.lwjgl.glfw.GLFWKeyCallbackI
Keyboard input backed by GLFW.

Held state and tapped state come from different places: keyPressed(RenderModuleKeyboardInput.KeyCtx) asks GLFW directly, while keyTapped(RenderModuleKeyboardInput.KeyCtx) reads a map this class maintains from GLFW's key callback, since a tap is an edge that polling would miss. That map is cleared each frame by clean(), so a tap is reported for exactly one frame.