Skip to content

Command ​

cpp
#include <Infrastructure/CmdQueueTypes.h>
cpp
struct Command

Defined in Infrastructure/CmdQueueTypes.h:270

A command sent to the emulator thread.

Public Attributes ​

ReturnNameDescription
CmdtypeHeader.
void *senderSender.
const char *strAttached string (may be null).

type ​

cpp
Cmd type

Type: Cmd

Defined in Infrastructure/CmdQueueTypes.h:273

Header.


sender ​

cpp
void * sender

Defined in Infrastructure/CmdQueueTypes.h:276

Sender.


str ​

cpp
const char * str = nullptr

Defined in Infrastructure/CmdQueueTypes.h:295

Attached string (may be null).

Public Methods ​

ReturnNameDescription
Command inlineCreates a command with up to two integer payload values.
Command inlineCreates a command with a sender and up to two integer payload values.
Command inlineCreates a command that changes a configuration option.
Command inlineCreates a command that carries a key event.
Command inlineCreates a command that carries a game pad action.
Command inlineCreates a command that carries a coordinate.
Command inlineCreates a command that schedules an alarm.
Command inlineCreates a command that changes a guard.
Command inlineCreates a command that carries a joystick state.

Command ​

inline

cpp
inline Command(Cmd type, i64 v1 = 0, i64 v2 = 0)

Defined in Infrastructure/CmdQueueTypes.h:299

Creates a command with up to two integer payload values.


Command ​

inline

cpp
inline Command(Cmd type, void * s, i64 v1 = 0, i64 v2 = 0)

Defined in Infrastructure/CmdQueueTypes.h:301

Creates a command with a sender and up to two integer payload values.


Command ​

inline

cpp
inline Command(Cmd type, const ConfigCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:303

Creates a command that changes a configuration option.


Command ​

inline

cpp
inline Command(Cmd type, const KeyCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:305

Creates a command that carries a key event.


Command ​

inline

cpp
inline Command(Cmd type, const GamePadCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:307

Creates a command that carries a game pad action.


Command ​

inline

cpp
inline Command(Cmd type, const CoordCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:309

Creates a command that carries a coordinate.


Command ​

inline

cpp
inline Command(Cmd type, const AlarmCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:311

Creates a command that schedules an alarm.


Command ​

inline

cpp
inline Command(Cmd type, const GuardCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:313

Creates a command that changes a guard.


Command ​

inline

cpp
inline Command(Cmd type, const JoyStateCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:315

Creates a command that carries a joystick state.