72#ifndef HOST_TEST_BUILD
75 json[
"value"] =
"CHAR";
116#ifndef HOST_TEST_BUILD
117 void getJsonProperties(JsonObject& json)
const override { json[
"value"] = text.c_str(); }
125 const std::string&
getText()
const {
return text; }
129 void send()
override;
157#ifndef HOST_TEST_BUILD
160 json[
"value"] =
"KEY";
173 void send()
override;
201#ifndef HOST_TEST_BUILD
204 json[
"value"] =
"MEDIA_STOP";
217 void send()
override;
Base class for all pedal actions.
virtual void getJsonProperties(JsonObject &json) const
Interface for Bluetooth LE keyboard functionality.
Base class for all sendable actions.
~SendAction() override=default
void execute() override
Executes the send action.
bool isSendAction() const override
Checks if this action is a send action.
IBleKeyboard * bleKeyboard
Pointer to BLE keyboard interface.
virtual void send()=0
Executes the send action.
Sends a single character via BLE keyboard.
Action::Type getType() const override
Gets the type of this action.
void send() override
Executes the character send action.
char getKey() const
Gets the character to be sent.
Sends a USB HID key code via BLE keyboard.
void send() override
Executes the key send action.
Action::Type getType() const override
Gets the type of this action.
uint8_t getKey() const
Gets the USB HID key code to be sent.
Sends a text string via BLE keyboard.
void send() override
Executes the string send action.
Action::Type getType() const override
Gets the type of this action.
const std::string & getText() const
Gets the text string to be sent.
uint8_t[2] MediaKeyReport
Type alias for media key reports.