Interface InputController.EventOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
InputController.Event, InputController.Event.Builder
Enclosing class:
InputController

public static interface InputController.EventOrBuilder extends com.google.protobuf.MessageLiteOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)
    com.google.protobuf.ByteString
    A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)
    An event type (eg: ButtonPress, ButtonRelease)
    com.google.protobuf.ByteString
    An event type (eg: ButtonPress, ButtonRelease)
    com.google.protobuf.Timestamp
    Timestamp of event
    double
    0 or 1 for buttons, -1.0 to +1.0 for axes
    boolean
    Timestamp of event

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • hasTime

      boolean hasTime()
       Timestamp of event
       
      .google.protobuf.Timestamp time = 1 [json_name = "time"];
      Returns:
      Whether the time field is set.
    • getTime

      com.google.protobuf.Timestamp getTime()
       Timestamp of event
       
      .google.protobuf.Timestamp time = 1 [json_name = "time"];
      Returns:
      The time.
    • getEvent

      String getEvent()
       An event type (eg: ButtonPress, ButtonRelease)
       
      string event = 2 [json_name = "event"];
      Returns:
      The event.
    • getEventBytes

      com.google.protobuf.ByteString getEventBytes()
       An event type (eg: ButtonPress, ButtonRelease)
       
      string event = 2 [json_name = "event"];
      Returns:
      The bytes for event.
    • getControl

      String getControl()
       A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)
       
      string control = 3 [json_name = "control"];
      Returns:
      The control.
    • getControlBytes

      com.google.protobuf.ByteString getControlBytes()
       A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)
       
      string control = 3 [json_name = "control"];
      Returns:
      The bytes for control.
    • getValue

      double getValue()
       0 or 1 for buttons, -1.0 to +1.0 for axes
       
      double value = 4 [json_name = "value"];
      Returns:
      The value.