• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • PortBoundActivity
  • fixo::PortBoundActivity Class

    Base class for Remote-side activities that bind to stanza input ports. More...

    Header: #include <PortBoundActivity>
    Since: Phase CIV-2 follow-on
    Inherits: octomy::activity::PageActivity
    Inherited By:

    fixo::PilotUniversalActivity and GroundDriveActivity

    Detailed Description

    Provides the wiring that every port-bound activity needs: - holds an ActivityManifest set by the subclass (typically in its ctor) - mounts an OptionalPortBank for absorbed port kinds - re-evaluates `manifestMatches` whenever the active stanza changes on any channel, toggling the activity's bound-enabled state - keeps track of which (channelId, stanzaId) the activity is bound to

    The host listens to Runtime::channelActiveChanged for active-stanza notifications. Subclasses provide the primary widget surface (joystick, dual-stick, etc.) above the auto-mounted bank, and call setManifest() once in their constructor.

    Section writes go through the OptionalPortBank for absorbed ports; the subclass writes its own explicit binds (joystick axes, parking brake key, etc.) directly to the section.