An object representing the virtual keyboard device.
keyboard
@/keyboard
An object representing the virtual keyboard device.
INITpulse
Configures board peripherals to start HID simulation. Trigger once before keyboard usage.
DEV@/keyboard
The keyboard device
To use the node in your project you should have the nkrkv/hid library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.
C++ implementation
#pragma XOD require "https://github.com/arduino-libraries/Keyboard"
{{#global}}
#include <Keyboard.h>
{{/global}}
using Type = Keyboard_*;
struct State {
};
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
auto kb = &Keyboard;
if (isInputDirty<input_INIT>(ctx))
kb->begin();
emitValue<output_DEV>(ctx, kb);
}