[Scummvm-devel] Re: [Scummvm-cvs-logs] CVS: scummvm/scumm input.cpp,2.6,2.7 verbs.cpp,1.113,1.114

Max Horn max at quendi.de
Sun Nov 21 07:14:30 CET 2004


Am 21.11.2004 um 16:03 schrieb Eugene Sandulenko:

> Max Horn writes:
>> Update of /cvsroot/scummvm/scummvm/scumm
>> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31751
>>
>> Modified Files:
>> 	input.cpp verbs.cpp
>> Log Message:
>> Fix for bug #1052660 (FOA: No keyboard shortcuts for dialogs) - moved 
>> hack enabling keyboard fights to allow controlling  conversations via 
>> number keys again
>> +			// To support keyboard fighting in FOA, we need to remap the 
>> number keys.
>> +			// FOA apparently expects PC scancode values (see script 46 if 
>> you want
>> +			// to know where I got these numbers from).
>> +			static const int numpad[10] = {
>> +					'0',
>> +					335, 336, 337,
>> +					331, 332, 333,
>> +					327, 328, 329
>> +				};
>> +			_mouseButStat = numpad[_mouseButStat - '0'];
> ScummEngine::getKeyState(int key) from script_v6.cpp could provide more
> robust values here.
>
Uh ? I don't understand, how could this be used here? As far as I can 
tell, it is meant to query whether a specific key is being pressed or 
not. But here, we need to convert (for one specific game) certain key 
codes to other key codes. Seems like two very different things to me...





More information about the Scummvm-devel mailing list