Class PadEvent

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class PadEvent extends Event
An event related to a pad-based device.
  • Constructor Details

    • PadEvent

      public PadEvent(MemorySegment address)
      Create a PadEvent instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the PadEvent class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected PadEvent asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Event
      Returns:
      the instance as if it were its parent type
    • getAxisValue

      public void getAxisValue(Out<Integer> index, Out<Double> value)
      Extracts the information from a pad strip or ring event.
      Parameters:
      index - Return location for the axis index
      value - Return location for the axis value
    • getButton

      public int getButton()
      Extracts information about the pressed button from a pad event.
      Returns:
      the button of this PadEvent
    • getGroupMode

      public void getGroupMode(Out<Integer> group, Out<Integer> mode)
      Extracts group and mode information from a pad event.
      Parameters:
      group - return location for the group
      mode - return location for the mode