From 7535e984341b5179266f289467d95b15cd7bd5f4 Mon Sep 17 00:00:00 2001 From: Stephen White Date: Wed, 17 Oct 2018 15:32:23 +1100 Subject: [PATCH] Alt-Enter will now insert a disk also. Some people are informing me they are using keyboards without an insert key. --- src/InputMappings.cpp | 4 ++-- src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/InputMappings.cpp b/src/InputMappings.cpp index 29a0462..a119a83 100644 --- a/src/InputMappings.cpp +++ b/src/InputMappings.cpp @@ -208,14 +208,14 @@ bool InputMappings::CheckKeyboardBrowseMode() if (keyboard->KeyHeld(KEY_ESC)) SetKeyboardFlag(ESC_FLAG); + else if (keyboard->KeyHeld(KEY_INSERT) || (keyboard->KeyHeld(KEY_ENTER) && keyboard->KeyEitherAlt())) + SetKeyboardFlag(INSERT_FLAG); else if (keyboard->KeyHeld(KEY_ENTER)) SetKeyboardFlag(ENTER_FLAG); else if (keyboard->KeyHeld(KEY_BACKSPACE)) SetKeyboardFlag(BACK_FLAG); else if (keyboard->KeyHeld(KEY_SPACE)) SetKeyboardFlag(SPACE_FLAG); - else if (keyboard->KeyHeld(KEY_INSERT)) - SetKeyboardFlag(INSERT_FLAG); else if (keyboard->KeyHeld(KEY_UP)) SetKeyboardFlag(UP_FLAG); else if (keyboard->KeyHeld(KEY_PAGEUP) || keyboard->KeyHeld(KEY_LEFT)) diff --git a/src/main.cpp b/src/main.cpp index 022af5a..443f85b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,7 +47,7 @@ extern "C" #include "ssd_logo.h" unsigned versionMajor = 1; -unsigned versionMinor = 14; +unsigned versionMinor = 15; // When the emulated CPU starts we execute the first million odd cycles in non-real-time (ie as fast as possible so the emulated 1541 becomes responsive to CBM-Browser asap) // During these cycles the CPU is executing the ROM self test routines (these do not need to be cycle accurate)