SPIKE-RT C++ API Reference
Loading...
Searching...
No Matches
Button.h
1//
2// Button.h
3//
4// Copyright (c) 2025 Embedded Technology Software Design Robot Contest
5//
6
7#ifndef SPIKE_CPP_API_BUTTON_H_
8#define SPIKE_CPP_API_BUTTON_H_
9
10namespace spikeapi {
14class Button
15{
16public:
22 Button(void) = default;
23
29 bool isLeftPressed();
30
36 bool isCenterPressed();
37
43 bool isRightPressed();
44
50 bool isBluetoothPressed();
51
56 bool hasError() { return false; }
57
58}; // class Button
59} // namespace spikeapi
60
61#endif // !SPIKE_CPP_API_BUTTON_H_
bool hasError()
Definition Button.h:56
bool isCenterPressed()
Definition Button.cpp:23
bool isLeftPressed()
Definition Button.cpp:15
bool isBluetoothPressed()
Definition Button.cpp:39
Button(void)=default
bool isRightPressed()
Definition Button.cpp:31