Package io.github.libsdl4j.api.keyboard
Class SDL_Keysym
- java.lang.Object
-
- com.sun.jna.Structure
-
- io.github.libsdl4j.api.keyboard.SDL_Keysym
-
@FieldOrder({"scancode","sym","mod","unused"}) public final class SDL_Keysym extends com.sun.jna.Structure
The SDL keysym structure, used in key events.Note: If you are looking for translated character input, see the
SDL_EventType.SDL_TEXTINPUT
event.
-
-
Field Summary
Fields Modifier and Type Field Description short
mod
current key modifiersint
scancode
SDL physical key code - seeSDL_Scancode
for detailsint
sym
SDL virtual key code - seeSDL_Keycode
for detailsint
unused
-
Constructor Summary
Constructors Constructor Description SDL_Keysym()
SDL_Keysym(com.sun.jna.Pointer p)
-
Method Summary
-
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
-
-
-
Field Detail
-
scancode
public int scancode
SDL physical key code - seeSDL_Scancode
for details
-
sym
public int sym
SDL virtual key code - seeSDL_Keycode
for details
-
mod
public short mod
current key modifiers
-
unused
public int unused
-
-