Package org.lwjgl.sdl

Class SDL_KeyboardEvent.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<SDL_KeyboardEvent>, NativeResource, Pointer
Enclosing class:
SDL_KeyboardEvent

public static class SDL_KeyboardEvent.Buffer extends StructBuffer<SDL_KeyboardEvent,SDL_KeyboardEvent.Buffer> implements NativeResource
An array of SDL_KeyboardEvent structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new SDL_KeyboardEvent.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by SDL_KeyboardEvent.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • type

      public int type()
      Returns:
      the value of the type field.
    • timestamp

      public long timestamp()
      Returns:
      the value of the timestamp field.
    • windowID

      public int windowID()
      Returns:
      the value of the windowID field.
    • which

      public int which()
      Returns:
      the value of the which field.
    • scancode

      public int scancode()
      Returns:
      the value of the scancode field.
    • key

      public int key()
      Returns:
      the value of the key field.
    • mod

      public short mod()
      Returns:
      the value of the mod field.
    • raw

      public short raw()
      Returns:
      the value of the raw field.
    • down

      public boolean down()
      Returns:
      the value of the down field.
    • repeat

      public boolean repeat()
      Returns:
      the value of the repeat field.
    • type

      public SDL_KeyboardEvent.Buffer type(int value)
      Sets the specified value to the type field.
    • timestamp

      public SDL_KeyboardEvent.Buffer timestamp(long value)
      Sets the specified value to the timestamp field.
    • windowID

      public SDL_KeyboardEvent.Buffer windowID(int value)
      Sets the specified value to the windowID field.
    • which

      public SDL_KeyboardEvent.Buffer which(int value)
      Sets the specified value to the which field.
    • scancode

      public SDL_KeyboardEvent.Buffer scancode(int value)
      Sets the specified value to the scancode field.
    • key

      public SDL_KeyboardEvent.Buffer key(int value)
      Sets the specified value to the key field.
    • mod

      public SDL_KeyboardEvent.Buffer mod(short value)
      Sets the specified value to the mod field.
    • raw

      public SDL_KeyboardEvent.Buffer raw(short value)
      Sets the specified value to the raw field.
    • down

      public SDL_KeyboardEvent.Buffer down(boolean value)
      Sets the specified value to the down field.
    • repeat

      public SDL_KeyboardEvent.Buffer repeat(boolean value)
      Sets the specified value to the repeat field.