Alt-Enter will now insert a disk also.

Some people are informing me they are using keyboards without an insert key.
This commit is contained in:
Stephen White 2018-10-17 15:32:23 +11:00
parent 7752ef3df7
commit 7535e98434
2 changed files with 3 additions and 3 deletions

View file

@ -208,14 +208,14 @@ bool InputMappings::CheckKeyboardBrowseMode()
if (keyboard->KeyHeld(KEY_ESC)) if (keyboard->KeyHeld(KEY_ESC))
SetKeyboardFlag(ESC_FLAG); SetKeyboardFlag(ESC_FLAG);
else if (keyboard->KeyHeld(KEY_INSERT) || (keyboard->KeyHeld(KEY_ENTER) && keyboard->KeyEitherAlt()))
SetKeyboardFlag(INSERT_FLAG);
else if (keyboard->KeyHeld(KEY_ENTER)) else if (keyboard->KeyHeld(KEY_ENTER))
SetKeyboardFlag(ENTER_FLAG); SetKeyboardFlag(ENTER_FLAG);
else if (keyboard->KeyHeld(KEY_BACKSPACE)) else if (keyboard->KeyHeld(KEY_BACKSPACE))
SetKeyboardFlag(BACK_FLAG); SetKeyboardFlag(BACK_FLAG);
else if (keyboard->KeyHeld(KEY_SPACE)) else if (keyboard->KeyHeld(KEY_SPACE))
SetKeyboardFlag(SPACE_FLAG); SetKeyboardFlag(SPACE_FLAG);
else if (keyboard->KeyHeld(KEY_INSERT))
SetKeyboardFlag(INSERT_FLAG);
else if (keyboard->KeyHeld(KEY_UP)) else if (keyboard->KeyHeld(KEY_UP))
SetKeyboardFlag(UP_FLAG); SetKeyboardFlag(UP_FLAG);
else if (keyboard->KeyHeld(KEY_PAGEUP) || keyboard->KeyHeld(KEY_LEFT)) else if (keyboard->KeyHeld(KEY_PAGEUP) || keyboard->KeyHeld(KEY_LEFT))

View file

@ -47,7 +47,7 @@ extern "C"
#include "ssd_logo.h" #include "ssd_logo.h"
unsigned versionMajor = 1; 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) // 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) // During these cycles the CPU is executing the ROM self test routines (these do not need to be cycle accurate)