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
10
namespace
spikeapi {
14
class
Button
15
{
16
public
:
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_
spikeapi::Button::hasError
bool hasError()
Definition
Button.h:56
spikeapi::Button::isCenterPressed
bool isCenterPressed()
Definition
Button.cpp:23
spikeapi::Button::isLeftPressed
bool isLeftPressed()
Definition
Button.cpp:15
spikeapi::Button::isBluetoothPressed
bool isBluetoothPressed()
Definition
Button.cpp:39
spikeapi::Button::Button
Button(void)=default
spikeapi::Button::isRightPressed
bool isRightPressed()
Definition
Button.cpp:31
libcpp-spike
include
Button.h
Generated by
1.14.0