16#include "Reflection.h"
114struct MsgTypeEnum : util::Reflection<MsgType, MsgType> {
116 static constexpr long minVal = 0;
117 static constexpr long maxVal =
MSG_ALARM;
118 static bool isValid(
auto value) {
return value >= minVal && value <= maxVal; }
120 static const char *prefix() {
return "MSG"; }
121 static const char *key(
long value)
203typedef struct { u16 pc; } CpuMsg;
204typedef struct { i16 nr; i16 value; i16 volume; i16 pan; } DriveMsg;
205typedef struct { isize line; i16 delay; } ScriptMsg;
218 class MediaFile *snapshot;
228typedef void Callback(
const void *, Message);
VirtualC64 project namespace.
Definition CmdQueue.cpp:16
MSG_TYPE
Emulator message.
Definition MsgQueueTypes.h:26
@ MSG_DRIVE_LED
The green drive LED has switched on or off.
Definition MsgQueueTypes.h:71
@ MSG_WATCHPOINT_REACHED
A watchpoint has been reached.
Definition MsgQueueTypes.h:53
@ MSG_DISK_MODIFIED
The disk needs saving.
Definition MsgQueueTypes.h:77
@ MSG_DRIVE_POWER_SAVE
Fast paths have been enabled or disabled.
Definition MsgQueueTypes.h:68
@ MSG_PAUSE
The emulator has entered STATE_PAUSED.
Definition MsgQueueTypes.h:33
@ MSG_SNAPSHOT_TAKEN
A snapshot has been taken (see OPT_SNAPSHOTS)
Definition MsgQueueTypes.h:98
@ MSG_WARP
The emulator has entered or exited warp mode.
Definition MsgQueueTypes.h:38
@ MSG_CONSOLE_CLOSE
RetroShell has been closed.
Definition MsgQueueTypes.h:43
@ MSG_RECORDING_STOPPED
The screen recorder has stopped.
Definition MsgQueueTypes.h:103
@ MSG_CONSOLE_UPDATE
RetroShell has generated new output.
Definition MsgQueueTypes.h:44
@ MSG_RECORDING_STARTED
The screen recorder has started.
Definition MsgQueueTypes.h:102
@ MSG_NONE
Unclassified.
Definition MsgQueueTypes.h:27
@ MSG_VC1530_MOTOR
The drive motor has started or stopped.
Definition MsgQueueTypes.h:84
@ MSG_DRIVE_READ
The floopy drive has switched to read mode.
Definition MsgQueueTypes.h:69
@ MSG_SER_IDLE
The IEC bus has returned to idle state.
Definition MsgQueueTypes.h:63
@ MSG_VC1530_COUNTER
The tape counter has stepped.
Definition MsgQueueTypes.h:85
@ MSG_CRT_ATTACHED
A cartridge has been plugged into the expansion port.
Definition MsgQueueTypes.h:88
@ MSG_DRIVE_POWER
The emulator has been powered on.
Definition MsgQueueTypes.h:67
@ MSG_SNAPSHOT_RESTORED
A snapshot has been restored.
Definition MsgQueueTypes.h:99
@ MSG_KB_AUTO_PRESS
The auto-typing daemon has pressed a key.
Definition MsgQueueTypes.h:91
@ MSG_SHUTDOWN
The emulator has been shut down.
Definition MsgQueueTypes.h:36
@ MSG_VC1530_CONNECT
A datasette has been connected or disconnected.
Definition MsgQueueTypes.h:81
@ MSG_DMA_DEBUG
The DMA debugger has been started or stopped.
Definition MsgQueueTypes.h:107
@ MSG_RESET
The emulator has been reset.
Definition MsgQueueTypes.h:35
@ MSG_BREAKPOINT_UPDATED
The breakpoint list has beed modified.
Definition MsgQueueTypes.h:50
@ MSG_CONSOLE_DEBUGGER
The RetroShell debugger has been opend or closed.
Definition MsgQueueTypes.h:45
@ MSG_CPU_JUMPED
The program counter has been modified manually.
Definition MsgQueueTypes.h:54
@ MSG_STEP
The emulator has stepped a single instruction.
Definition MsgQueueTypes.h:34
@ MSG_SHAKING
A shaking mouse has been detected.
Definition MsgQueueTypes.h:95
@ MSG_CPU_JAMMED
The CPU has halted due to an illegal instruction.
Definition MsgQueueTypes.h:55
@ MSG_VC1530_PLAY
The play key has been pressed.
Definition MsgQueueTypes.h:83
@ MSG_DRIVE_STEP
The drive head has stepped.
Definition MsgQueueTypes.h:73
@ MSG_FILE_FLASHED
A file has been flashed into memory.
Definition MsgQueueTypes.h:78
@ MSG_DISK_EJECT
A disk has been ejected.
Definition MsgQueueTypes.h:75
@ MSG_NTSC
The emulator runs in NTSC mode now.
Definition MsgQueueTypes.h:59
@ MSG_SCRIPT_DONE
A RetroShell script has been successfully executed.
Definition MsgQueueTypes.h:46
@ MSG_BREAKPOINT_REACHED
A breakpoint has been reached.
Definition MsgQueueTypes.h:51
@ MSG_CONFIG
The configuration has changed.
Definition MsgQueueTypes.h:30
@ MSG_DISK_INSERT
A disk has been inserted.
Definition MsgQueueTypes.h:74
@ MSG_SER_BUSY
The IEC bus is transferring data.
Definition MsgQueueTypes.h:62
@ MSG_ABORT
The emulator requests the GUI to quit the app.
Definition MsgQueueTypes.h:37
@ MSG_PAL
The emulator runs in PAL mode now.
Definition MsgQueueTypes.h:58
@ MSG_RECORDING_ABORTED
Screen recording has been aborted.
Definition MsgQueueTypes.h:104
@ MSG_VC1530_TAPE
A tape has been inserted or ejected.
Definition MsgQueueTypes.h:82
@ MSG_MUTE
The emulator has been muted or unmuted.
Definition MsgQueueTypes.h:40
@ MSG_SCRIPT_ABORT
The execution of a RetroShell ccript has been aborted.
Definition MsgQueueTypes.h:47
@ MSG_WATCHPOINT_UPDATED
The watchpoint list has beed modified.
Definition MsgQueueTypes.h:52
@ MSG_DRIVE_WRITE
The floppy drive has switched to write mode.
Definition MsgQueueTypes.h:70
@ MSG_RUN
The emulator has entered STATE_RUNNING.
Definition MsgQueueTypes.h:32
@ MSG_POWER
The emulator has been powered on or off.
Definition MsgQueueTypes.h:31
@ MSG_DISK_PROTECTED
The write protection status has changed.
Definition MsgQueueTypes.h:76
@ MSG_KB_AUTO_RELEASE
The auto-typing daemon has released a key.
Definition MsgQueueTypes.h:92
@ MSG_DRIVE_CONNECT
A floppy drive has been connected or disconnected.
Definition MsgQueueTypes.h:66
@ MSG_DRIVE_MOTOR
The disk has started or stopped spinning.
Definition MsgQueueTypes.h:72
@ MSG_ALARM
A user-set alarm event has fired.
Definition MsgQueueTypes.h:110
@ MSG_TRACK
The emulator has entered or exited track mode.
Definition MsgQueueTypes.h:39