HoloLib
High-performance holonomic (X-Drive) control library for VEX V5
Loading...
Searching...
No Matches
ControllerButton Struct Reference

Links a controller button to a lambda callback function. More...

#include <replay.h>

Public Attributes

pros::controller_digital_e_t button
 The specific controller button.
 
std::function< void()> callback
 The callback to execute when pressed.
 

Detailed Description

Links a controller button to a lambda callback function.

Definition at line 19 of file replay.h.

Member Data Documentation

◆ button

pros::controller_digital_e_t ControllerButton::button

The specific controller button.

Definition at line 20 of file replay.h.

◆ callback

std::function<void()> ControllerButton::callback

The callback to execute when pressed.

Definition at line 21 of file replay.h.