Class DriverStation.TouchpadFinger

java.lang.Object
org.wpilib.driverstation.DriverStation.TouchpadFinger
Enclosing class:
DriverStation

public static class DriverStation.TouchpadFinger extends Object
Represents a finger on a touchpad.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    Whether the finger is touching the touchpad.
    final float
    The x position of the finger.
    final float
    The y position of the finger.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TouchpadFinger(boolean down, float x, float y)
    Creates a TouchpadFinger object.
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • down

      public final boolean down
      Whether the finger is touching the touchpad.
    • x

      public final float x
      The x position of the finger. 0 is at top left.
    • y

      public final float y
      The y position of the finger. 0 is at top left.
  • Constructor Details

    • TouchpadFinger

      public TouchpadFinger(boolean down, float x, float y)
      Creates a TouchpadFinger object.
      Parameters:
      down - Whether the finger is touching the touchpad.
      x - The x position of the finger.
      y - The y position of the finger.