[Scummvm-cvs-logs] scummvm master -> 0da3f8d8a5ecfef54d3580ae5db6a80f6ca2b77a

wjp wjp at usecode.org
Sat May 21 16:08:18 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
0da3f8d8a5 SCI: Fix probable alt/shift mixup


Commit: 0da3f8d8a5ecfef54d3580ae5db6a80f6ca2b77a
    https://github.com/scummvm/scummvm/commit/0da3f8d8a5ecfef54d3580ae5db6a80f6ca2b77a
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2011-05-21T07:02:51-07:00

Commit Message:
SCI: Fix probable alt/shift mixup

A check for alt was changed into this check for shift in the
cleanup commit 906f0248317e1a4167190a666fe308a09334bfac.

Changed paths:
    engines/sci/event.cpp



diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp
index b015a6d..74879f6 100644
--- a/engines/sci/event.cpp
+++ b/engines/sci/event.cpp
@@ -250,7 +250,7 @@ SciEvent EventManager::getScummVMEvent() {
 	// When Ctrl AND Alt are pressed together with a regular key, Linux will give us control-key, Windows will give
 	//  us the actual key. My opinion is that windows is right, because under DOS the keys worked the same, anyway
 	//  we support the other case as well
-	if ((modifiers & Common::KBD_SHIFT) && input.character > 0 && input.character < 27)
+	if ((modifiers & Common::KBD_ALT) && input.character > 0 && input.character < 27)
 		input.character += 96; // 0x01 -> 'a'
 
 	if (getSciVersion() <= SCI_VERSION_1_MIDDLE) {






More information about the Scummvm-git-logs mailing list