Class 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.

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.sun.jna.Structure

        com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
    • Field Summary

      Fields 
      Modifier and Type Field Description
      short mod
      current key modifiers
      int scancode
      SDL physical key code - see SDL_Scancode for details
      int sym
      SDL virtual key code - see SDL_Keycode for details
      int unused  
      • Fields inherited from class com.sun.jna.Structure

        ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
    • 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 - see SDL_Scancode for details
      • sym

        public int sym
        SDL virtual key code - see SDL_Keycode for details
      • mod

        public short mod
        current key modifiers
      • unused

        public int unused
    • Constructor Detail

      • SDL_Keysym

        public SDL_Keysym()
      • SDL_Keysym

        public SDL_Keysym​(com.sun.jna.Pointer p)