Skip to content

Cmd ​

cpp
enum Cmd

Defined in Infrastructure/CmdQueueTypes.h:26

Emulator command.

ValueDescription
NONENone.
CONFIGConfigure the emulator.
CONFIG_ALLConfigure the emulator.
CONFIG_SCHEMEIConfigure the emulator with a predefined scheme.
HARD_RESETPerform a hard reset.
SOFT_RESETPerform a soft reset.
POWER_ONSwitch power on.
POWER_OFFSwitch power off.
RUNStart emulation.
PAUSEPause emulation.
WARP_ONSwitch on warp mode.
WARP_OFFSwitch off warp mode.
TRACK_ONSwitch on track mode.
TRACK_OFFSwitch off track mode.
STEP_INTORun the emulator for a single step.
STEP_OVERRun the emulator for a single step.
FINISH_LINERun the emulator for a single step.
FINISH_FRAMERun the emulator for a single step.
HALTTerminate the emulator thread.
ALARM_ABSSchedule an alarm (absolute cycle).
ALARM_RELSchedule an alarm (relative cycle).
INSPECTION_TARGETSets the auto-inspection mask.
SAVE_WORKSPACESave the workspace to a folder (path attached).
SAVE_SNAPSHOTSave a snapshot to a file (path attached).
HIBERNATEHibernate into an SVM (path attached, value = bit 0: snapshot, bit 1: workspace).
HDR_ATTACHAttach a hard drive and put it into an SVM (path attached, value = drive, value2 = SVM).
HDR_IMPORTImport a folder into a hard drive (path attached, value = drive).
GUARD_SET_AT
GUARD_REMOVE_NRRemove the n-th guard.
GUARD_MOVE_NRChange the address of a guard.
GUARD_IGNORE_NRChange the ignore count of a guard.
GUARD_REMOVE_ATRemove the guard at an address.
GUARD_REMOVE_ALLRemove all guards.
GUARD_ENABLE_NREnable the n-th guard.
GUARD_ENABLE_ATEnable the guard at an address.
GUARD_ENABLE_ALLEnable all guards.
GUARD_DISABLE_NRDisable the n-th guard.
GUARD_DISABLE_ATDisable the guard at an address.
GUARD_DISABLE_ALLDisable all guards.
GUARD_TOGGLE_NRToggle the n-th guard.
KEY_PRESSPress a key on the Amiga keyboard.
KEY_RELEASERelease a key on the Amiga keyboard.
KEY_RELEASE_ALLClear the keyboard matrix.
KEY_TOGGLEPress or release a key on the Amiga keyboard.
KEY_LOCKLock a key so it survives a release call.
KEY_UNLOCKUnlock a previously locked key.
KEY_ABORT_TYPINGDelete all pending keyboard events.
MOUSE_MOVE_ABSSignal a mouse movement (absolute).
MOUSE_MOVE_RELSignal a mouse movement (relative).
MOUSE_BUTTONSignal a mouse button event.
JOY_EVENTSignal a joystick button event.
JOY_STATESet the complete joystick state (directions and fire button).
DSK_TOGGLE_WPToggle write-protection.
DSK_MODIFIEDSignal that the disk has been saved.
DSK_UNMODIFIEDSignan that the disk needs saving.
DSK_INSERTInsert a disk (path attached, value = drive, value2 = write protection).
RSH_EXECUTEExecute a script command.
RSH_PRESS_KEYType a special key into RetroShell (value = key, value2 = shift).
RSH_PRESS_CHARType a character into RetroShell (value = character).
RSH_PRESS_TEXTType a string into RetroShell (text attached).
CALLRun a function on the emulator thread (value2 = pointer to a std::function<void()> that stays alive until the command has been carried out).
FOCUSThe emulator windows got or lost focus.