From 6a436c25bdf1b28933a40860e2336ccfb6f81886 Mon Sep 17 00:00:00 2001 From: thrust26 Date: Sun, 2 Feb 2020 11:54:00 +0100 Subject: [PATCH] fix #566 (fry button) --- docs/index.html | 22 +++++++++++----------- src/common/PKeyboardHandler.cxx | 14 ++++++++------ 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/docs/index.html b/docs/index.html index 4efd03786..881857902 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1278,17 +1278,17 @@ Shift Shift (left or right) Enter Return/Enter Space Space - Func-Space Backspace - + + or Shift-1 - - - or Shift-2 - * Shift-3 - / / or Shift-4 - = = or Shift-5 - ? ? (Shift-/) or Shift-6 - $ Shift-7 - [ [ or Shift-8 - ] ] or Shift-9 - " " (Shift-') or Shift-0 + Func-Space Shift + Backspace + + + or Shift + 1 + - - or Shift + 2 + * Shift + 3 + / / or Shift + 4 + = = or Shift + 5 + ? ? (Shift + /) or Shift + 6 + $ Shift + 7 + [ [ or Shift + 8 + ] ] or Shift + 9 + " " (Shift + ') or Shift + 0 diff --git a/src/common/PKeyboardHandler.cxx b/src/common/PKeyboardHandler.cxx index 4b0343984..26ae73942 100644 --- a/src/common/PKeyboardHandler.cxx +++ b/src/common/PKeyboardHandler.cxx @@ -413,12 +413,9 @@ PhysicalKeyboardHandler::EventMappingArray PhysicalKeyboardHandler::DefaultCommo {Event::ConsoleSelect, KBDK_F1}, {Event::ConsoleReset, KBDK_F2}, {Event::ConsoleColor, KBDK_F3}, - {Event::ConsoleBlackWhite, KBDK_F4}, {Event::Console7800Pause, KBDK_F3, MOD3}, {Event::ConsoleLeftDiffA, KBDK_F5}, - {Event::ConsoleLeftDiffB, KBDK_F6}, {Event::ConsoleRightDiffA, KBDK_F7}, - {Event::ConsoleRightDiffB, KBDK_F8}, {Event::SaveState, KBDK_F9}, {Event::SaveAllStates, KBDK_F9, MOD3}, {Event::PreviousState, KBDK_F10, KBDM_SHIFT}, @@ -427,7 +424,6 @@ PhysicalKeyboardHandler::EventMappingArray PhysicalKeyboardHandler::DefaultCommo {Event::LoadState, KBDK_F11}, {Event::LoadAllStates, KBDK_F11, MOD3}, {Event::TakeSnapshot, KBDK_F12}, - {Event::Fry, KBDK_BACKSPACE}, {Event::TogglePauseMode, KBDK_PAUSE}, {Event::OptionsMenuMode, KBDK_TAB}, {Event::CmdMenuMode, KBDK_BACKSLASH}, @@ -516,6 +512,11 @@ PhysicalKeyboardHandler::EventMappingArray PhysicalKeyboardHandler::DefaultCommo {Event::ConsoleRightDiffToggle, KBDK_F8}, // front ("SKILL P2") {Event::CmdMenuMode, KBDK_F13}, // back ("4:3","16:9") {Event::ExitMode, KBDK_BACKSPACE}, // back ("FRY") +#else // defining duplicate keys must be avoided! + {Event::ConsoleBlackWhite, KBDK_F4}, + {Event::ConsoleLeftDiffB, KBDK_F6}, + {Event::ConsoleRightDiffB, KBDK_F8}, + {Event::Fry, KBDK_BACKSPACE}, #endif }; @@ -550,7 +551,6 @@ PhysicalKeyboardHandler::EventMappingArray PhysicalKeyboardHandler::DefaultMenuM {Event::UITabPrev, KBDK_TAB, KBDM_SHIFT | KBDM_CTRL}, {Event::UITabNext, KBDK_TAB, KBDM_CTRL}, - {Event::UIPrevDir, KBDK_BACKSPACE}, {Event::ToggleFullScreen, KBDK_RETURN, MOD3}, #ifdef BSPF_MACOS @@ -569,6 +569,8 @@ PhysicalKeyboardHandler::EventMappingArray PhysicalKeyboardHandler::DefaultMenuM //{Event::NoType, KBDK_F4}, // back ("COLOR","B/W") {Event::UITabPrev, KBDK_F13}, // back ("4:3","16:9") {Event::UITabNext, KBDK_BACKSPACE}, // back (FRY) +#else // defining duplicate keys must be avoided! + {Event::UIPrevDir, KBDK_BACKSPACE}, #endif }; @@ -704,7 +706,7 @@ PhysicalKeyboardHandler::EventMappingArray PhysicalKeyboardHandler::CompuMateMap {Event::CompuMateRightBracket, KBDK_RIGHTBRACKET}, {Event::CompuMateMinus, KBDK_MINUS}, {Event::CompuMateQuote, KBDK_APOSTROPHE, KBDM_SHIFT}, - {Event::CompuMateBackspace, KBDK_BACKSPACE}, + {Event::CompuMateBackspace, KBDK_BACKSPACE, KBDM_SHIFT}, {Event::CompuMateEquals, KBDK_EQUALS}, {Event::CompuMatePlus, KBDK_EQUALS, KBDM_SHIFT}, {Event::CompuMateSlash, KBDK_SLASH}