aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/event.cpp
diff options
context:
space:
mode:
authormd52011-02-15 15:43:10 +0200
committermd52011-02-15 15:46:15 +0200
commitbd64c5078c3d07bb9cf80ef8e72f151bec8beec4 (patch)
treea41a86f3e414552f57363f0f9bf81658b051c6f9 /engines/sci/event.cpp
parent489a4598a12f66cb9450b574f874b50578ea00e6 (diff)
downloadscummvm-rg350-bd64c5078c3d07bb9cf80ef8e72f151bec8beec4.tar.gz
scummvm-rg350-bd64c5078c3d07bb9cf80ef8e72f151bec8beec4.tar.bz2
scummvm-rg350-bd64c5078c3d07bb9cf80ef8e72f151bec8beec4.zip
SCI: Cleaned up kMapKeyToDir and removed an incorrect heuristic
The heuristic in question was used to detect the pseudo mouse control functionality, however the change in controls seems to have occurred with the transition to cursor views. Fixes keypad control in Conquest of the Longbow. Moreover, the code also checked for key scan code 76 when checking for the middle keypad button, which seems to be a mistake, as that case never occurred.
Diffstat (limited to 'engines/sci/event.cpp')
-rw-r--r--engines/sci/event.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp
index 0c17db6028..d607a5314f 100644
--- a/engines/sci/event.cpp
+++ b/engines/sci/event.cpp
@@ -36,31 +36,11 @@
namespace Sci {
EventManager::EventManager(bool fontIsExtended) : _fontIsExtended(fontIsExtended), _modifierStates(0) {
-
- if (getSciVersion() >= SCI_VERSION_1_MIDDLE) {
- _usesNewKeyboardDirectionType = true;
- } else if (getSciVersion() <= SCI_VERSION_01) {
- _usesNewKeyboardDirectionType = false;
- } else {
- // they changed this somewhere inbetween SCI1EGA/EARLY
- _usesNewKeyboardDirectionType = false;
-
- // We are looking if script 933 exists, that one has the PseudoMouse class in it that handles it
- // The good thing is that PseudoMouse seems to only exists in games that use the new method
- if (g_sci->getResMan()->testResource(ResourceId(kResourceTypeScript, 933)))
- _usesNewKeyboardDirectionType = true;
- // Checking the keyboard driver size in here would also be a valid method, but the driver is only available
- // in PC versions of the game
- }
}
EventManager::~EventManager() {
}
-bool EventManager::getUsesNewKeyboardDirectionType() {
- return _usesNewKeyboardDirectionType;
-}
-
struct ScancodeRow {
int offset;
const char *keys;