ReXGlue SDK
Loading...
Searching...
No Matches
rex::InputSource Struct Reference

Public Member Functions

constexpr bool operator== (const InputSource &other) const =default

Public Attributes

InputSourceType type = InputSourceType::kKey
u16 code = 0
KeyModifiers modifiers = KeyModifiers::kNone
i8 sign = 0
u8 axis_slot = 0

Member Function Documentation

◆ operator==()

bool rex::InputSource::operator== ( const InputSource & other) const
constexprdefault

Compares two sources field by field.

Member Data Documentation

◆ axis_slot

u8 rex::InputSource::axis_slot = 0

The 1 based key half of a stick row this input fills, 0 outside a stick row.

◆ code

u16 rex::InputSource::code = 0

A VirtualKey, PadInput or PadAxes by type, 0 for a wheel.

◆ modifiers

KeyModifiers rex::InputSource::modifiers = KeyModifiers::kNone

The modifiers held with a key or wheel input, ignored for pad inputs.

◆ sign

i8 rex::InputSource::sign = 0

The wheel direction, 1 for up and -1 for down, 0 for other types.


The documentation for this struct was generated from the following file: