diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2024-10-29 13:58:19 +1300 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2024-10-29 13:59:44 +1300 |
commit | c42e2154d88c23a28f83fe96f4153e821ef00c0e (patch) | |
tree | 152b75b7077b03065696ea8b6bf670c628cea683 /src/emulators/graphical_emulator.rs | |
parent | 41366dea0ee6702f4cb5f9bc12d62530c46c8c12 (diff) | |
download | bedrock-pc-c42e2154d88c23a28f83fe96f4153e821ef00c0e.zip |
Add option to show mouse cursor
This is to assist with debugging, when a program hasn't yet implemented
its own mouse cursor. Phosphor had to be updated to properly support
this.
Diffstat (limited to 'src/emulators/graphical_emulator.rs')
-rw-r--r-- | src/emulators/graphical_emulator.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emulators/graphical_emulator.rs b/src/emulators/graphical_emulator.rs index 1e048de..a183262 100644 --- a/src/emulators/graphical_emulator.rs +++ b/src/emulators/graphical_emulator.rs @@ -107,6 +107,7 @@ pub struct GraphicalEmulator { pub render_mark: Instant, pub debug_palette: Option<[Colour; 16]>, pub show_debug_palette: bool, + pub show_cursor: bool, } impl GraphicalEmulator { @@ -121,6 +122,7 @@ impl GraphicalEmulator { render_mark: Instant::now(), debug_palette: config.debug_palette, show_debug_palette: config.debug_palette.is_some(), + show_cursor: config.show_cursor, } } |