Skip to content

ludus::runtime::game_api::FrameInput

Ludus Wiki · API overview · Browse API

Struct

Per-frame data handed to Update.
Fixed-width, POD. Times are host-owned; the module does not advance wall-clock time itself (design 8). Input is the current held state, normalized by the host from the Platform contract.

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

#include <ludus/runtime/game_api/services.h>
struct ludus::runtime::game_api::FrameInput final

Fields

FrameIndex

uint64 ludus::runtime::game_api::FrameInput::FrameIndex = 0

Related types: uint64

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

DeltaSeconds

float64 ludus::runtime::game_api::FrameInput::DeltaSeconds = 0

Related types: float64

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

ElapsedSeconds

float64 ludus::runtime::game_api::FrameInput::ElapsedSeconds = 0
Monotonic simulation seconds owned by host.

Related types: float64

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

Width

uint32 ludus::runtime::game_api::FrameInput::Width = 0

Related types: uint32

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

Height

uint32 ludus::runtime::game_api::FrameInput::Height = 0

Related types: uint32

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

HeldActions

uint32 ludus::runtime::game_api::FrameInput::HeldActions = 0
Bitset of currently-held logical actions (sample vocabulary).
The host maps bit 0 to Left (A/left arrow), bit 1 to Right (D/right arrow), and bit 2 to Space. Focus/reset suppression follows Ludus::Input.

Related types: uint32

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

Paused

uint8 ludus::runtime::game_api::FrameInput::Paused = 0
1 while the host has the session paused.

Related types: uint8

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

Reserved0

uint8 ludus::runtime::game_api::FrameInput::Reserved0 = 0

Related types: uint8

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

Reserved1

uint8 ludus::runtime::game_api::FrameInput::Reserved1 = 0

Related types: uint8

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h

Reserved2

uint8 ludus::runtime::game_api::FrameInput::Reserved2 = 0

Related types: uint8

Declared in modules/runtime/game_api/include/ludus/runtime/game_api/services.h