WPILibC++ 2027.0.0-alpha-5
Loading...
Searching...
No Matches
TouchpadFinger.hpp
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7namespace wpi {
8
9/**
10 * Touchpad finger data from a joystick.
11 */
12struct TouchpadFinger final {
13 /// Whether the finger is touching the touchpad.
14 bool down = false;
15 /// The x position of the finger on the touchpad.
16 float x = 0.0f;
17 /// The y position of the finger on the touchpad.
18 float y = 0.0f;
19};
20
21} // namespace wpi
Definition CvSource.hpp:15
Touchpad finger data from a joystick.
Definition TouchpadFinger.hpp:12
float y
The y position of the finger on the touchpad.
Definition TouchpadFinger.hpp:18
float x
The x position of the finger on the touchpad.
Definition TouchpadFinger.hpp:16
bool down
Whether the finger is touching the touchpad.
Definition TouchpadFinger.hpp:14