Record Class GLFWRenderModuleKeyboardInput.KeyCtx
java.lang.Object
java.lang.Record
io.codetoil.curved_spacetime.render.glfw.GLFWRenderModuleKeyboardInput.KeyCtx
- Record Components:
keycode- the GLFW key code, which is layout-independentscanCode- the platform-specific scancodeaction- the GLFW action that produced this eventmods- the modifier key bitmask in effect
- All Implemented Interfaces:
RenderModuleKeyboardInput.KeyCtx
- Enclosing class:
GLFWRenderModuleKeyboardInput
public static record GLFWRenderModuleKeyboardInput.KeyCtx(int keycode, int scanCode, int action, int mods)
extends Record
implements RenderModuleKeyboardInput.KeyCtx
A key identified the way GLFW reports it.
-
Constructor Summary
ConstructorsConstructorDescriptionKeyCtx(int keycode, int scanCode, int action, int mods) Creates an instance of aKeyCtxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intkeycode()Returns the value of thekeycoderecord component.intmods()Returns the value of themodsrecord component.intscanCode()Returns the value of thescanCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyCtx
public KeyCtx(int keycode, int scanCode, int action, int mods) Creates an instance of aKeyCtxrecord class.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
keycode
-
scanCode
-
action
-
mods
-