Skip to content

File SimGateway.h

FileList > Firmware > Libraries > SimGateway > SimGateway.h

Go to the source code of this file

RP2040 USB HID gateway library for OpenSkyhawk __SimGateway board.More...

  • #include <Arduino.h>
  • #include <HIDControls.h>

Namespaces

Type Name
namespace OpenSkyhawk
namespace SimGateway

Classes

Type Name
class HIDAxis
HID axis handler. Declared at sketch scope for each joystick axis.
class HIDButton
HID button handler. Declared at sketch scope for each button.
class HIDHatSwitch
HID hat switch handler. Declared at sketch scope for each hat switch.

Detailed Description

Owns the USB CDC ↔ UART relay, 0xAA 0x55 HID frame demultiplexer, and OsJoystick.send() batching. HIDAxis, HIDButton, and HIDHatSwitch objects are declared in the sketch at file scope and self-register into linked lists at construction. SimGateway::loop() walks those lists and dispatches matching HID frames to the OpenSkyhawkJoystick abstraction layer.

Does NOT run DCS-BIOS, parse DCS-BIOS addresses, or interact with CAN. Platform: RP2040 only.

Version:

0.1.0

Copyright:

GPL-2.0-only — see Firmware/LICENSE


The documentation for this class was generated from the following file Firmware/Libraries/SimGateway/SimGateway.h