Class OpenSkyhawk::HIDButton
ClassList > OpenSkyhawk > HIDButton
HID button handler. Declared at sketch scope for each button. More...
#include <SimGateway.h>
Public Functions
| Type | Name |
|---|---|
| HIDButton (uint16_t controlId, uint8_t buttonIndex) Register a HID button handler. |
|
| uint16_t | controlId () const |
| void | dispatch (uint16_t value) Dispatch a value to the joystick button. |
| HIDButton * | next () const |
Public Static Functions
| Type | Name |
|---|---|
| HIDButton * | head () |
Detailed Description
Self-registers into a static linked list at construction. value != 0 → button pressed; value == 0 → button released.
Public Functions Documentation
function HIDButton
Register a HID button handler.
OpenSkyhawk::HIDButton::HIDButton (
uint16_t controlId,
uint8_t buttonIndex
)
Parameters:
controlIdCTRL_* button constant from HIDControls.h (0x0030–0x00AF range).buttonIndexOpenSkyhawkJoystick button index (0–127).
function controlId
uint16_t OpenSkyhawk::HIDButton::controlId () const
function dispatch
Dispatch a value to the joystick button.
void OpenSkyhawk::HIDButton::dispatch (
uint16_t value
)
Parameters:
value0 → released; non-zero → pressed.
function next
HIDButton * OpenSkyhawk::HIDButton::next () const
Public Static Functions Documentation
function head
static HIDButton * OpenSkyhawk::HIDButton::head ()
The documentation for this class was generated from the following file Firmware/Libraries/SimGateway/SimGateway.h