001// Copyright (c) FIRST and other WPILib contributors. 002// Open Source Software; you can modify and/or share it under the terms of 003// the WPILib BSD license file in the root directory of this project. 004 005package org.wpilib.driverstation; 006 007/** Represents a finger on a touchpad. */ 008public final class TouchpadFinger { 009 /** Whether the finger is touching the touchpad. */ 010 public final boolean down; 011 012 /** The x position of the finger. 0 is at top left. */ 013 public final float x; 014 015 /** The y position of the finger. 0 is at top left. */ 016 public final float y; 017 018 /** 019 * Creates a TouchpadFinger object. 020 * 021 * @param down Whether the finger is touching the touchpad. 022 * @param x The x position of the finger. 023 * @param y The y position of the finger. 024 */ 025 public TouchpadFinger(boolean down, float x, float y) { 026 this.x = x; 027 this.y = y; 028 this.down = down; 029 } 030}