Commit Graph
41 Commits
Author SHA1 Message Date
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Eugene Sandulenko 5e7fe2dc57 JANITORIAL: Replace spaces in indentation with tabs 2021-04-15 21:20:36 +02:00
lolbot-iichan a686b85688 WINTERMUTE: Handle Ctrl&Shift at BaseKeyboardState 2020-02-19 08:04:25 +02:00
Cameron Cawley 9fc24522d7 BACKENDS: Add more keycodes 2020-01-21 03:28:22 +02:00
lolbot-iichan 720aea5960 WINTERMUTE: Key code mapping refactoring
I discovered, that difference in key mappings between FoxTail and usual
games is not due to FoxTail's engine differences from WME Lite, but were
made in WME Lite itself! WME 1.x is using "Virtual-Key Codes" mapping
and WME Lite and FoxTail are using "SDL_Keycode" mapping.

So, here is total refactoring of keycode handling.

Why nobody noticed this earlier? Because there are only 4 currently
known series that are based on WME Lite (J.U.L.I.A. series, Reversion
series, FoxTail and Securanote) and because most WME games, both
1.x-based and Lite-based are using Keyboard class only for handling
Enter and Escape keys, which are the same in both mappings (Backspace,
Space and Tab are also the same).
2020-01-11 18:05:39 +02:00
lolbot-iichan 1754aed61d WINTERMUTE: Add FoxTail key codes mapping
FoxTail code is hacked to use key codes from different from usual WME.
Got correct mapping using script decompiling, verified with sample game.
2020-01-11 18:05:39 +02:00
lolbot-iichan 8a93f2c9f4 WINTERMUTE: Handle isCurrentPrintable property for WME 1.x and WME Lite
1. Moved KEYCODE_SPACE to "alphanumeric or punctuation" group.
2. Splited "else" into before and after WME_LITE.
2019-12-19 15:50:25 +02:00
lolbot-iichan c32027672e WINTERMUTE: Add comments + warning() for IsKeyDown() method 2019-06-25 08:10:16 +03:00
lolbot-iichan 62aebde208 WINTERMUTE: Support even more keycodes at IsKeyDown() 2019-06-25 08:10:16 +03:00
lolbot-iichan b9af5ad304 WINTERMUTE: Fix IsKeyDown to work with ASCII
Tanya Grotter series has a cheat, that is triggered with
(Keyboard.IsKeyDown("A") && Keyboard.IsControl && Keyboard.IsAlt &&
Game.DebugMode) condition.
vKeyToKeyCode(97) would produce a warning message, fixed this.
2019-06-25 08:10:16 +03:00
lolbot-iichan e97b1e560d WINTERMUTE: Check keyboard state array index
vKeyToKeyCode() method was unsafe if vkey >= KEYSTATES_ARRAY_SIZE was
provided, fixed
2018-08-23 11:33:13 +02:00
lolbot-iichan 52b4206771 WINTERMUTE: Support more key codes for mapping
some keypresses were producing warnings because key codes were not
listed in
mappings, added more key codes
2018-08-23 11:33:13 +02:00
lolbot-iichan 20816b9f90 WINTERMUTE: Fix printable flag for keyboard state
_currentPrintable was set depending on _currentCharCode, which is 112
for both F1 and 'p' keys, fixed after detailed research on which keys
should be considered printable
2018-08-23 11:33:13 +02:00
jammm d090057f1f WINTERMUTE: Add more keyboard mappings, fix console warnings.
Add mappings for numpad keys, tab, pause and backspace.
Suppressed unnecessary warnings for keys that are text-input.
2015-12-21 20:20:56 +05:30
jammm 320139760c WINTERMUTE: Add mappings for VKeyCodes->ScummVM KeyCodes
Fix bug #6654 (white chamber - some keys don't work)

Wintermute games on ScummVM used ScummVM keycodes for keyboard mapping,
whereas the game scripts only accepted Windows VKeyCodes. Therefore an initial
set of mappings are added and the debug room is now loading properly, when
HOME is pressed (Rest of the keys need to be tested in-game)
2015-02-24 23:04:09 +05:30
Einar Johan Trøan Sømåen ee876b56b2 WINTERMUTE: Add VK-translations for F1-F12 and HOME 2014-11-04 18:34:06 +01:00
Johannes Schickel fc5ef58fff WINTERMUTE: Make GPL headers consistent in themselves. 2014-02-18 02:39:40 +01:00
Filippos Karapetis eba0c0ff62 WINTERMUTE: Add the keycode for the ESC key
This is used by Looky
2013-11-07 13:47:38 +02:00
Einar Johan Trøan Sømåen 7892188bcf WINTERMUTE: Transfer Uint32s explicitly when saving/loading. 2013-11-05 13:31:13 +01:00
Einar Johan Trøan Sømåen 6b4adab654 WINTERMUTE: Transfer booleans explicitly when saving/loading. 2013-10-28 19:19:12 +01:00
Johannes Schickel 1ce54c217a WINTERMUTE: Fix end of namespace comments. 2013-08-04 00:51:09 +02:00
Einar Johan Trøan Sømåen e30271e6f6 WINTERMUTE: Correct the char-code check in BaseKeyboardState 2012-12-13 20:40:40 +01:00
Einar Johan Trøan Sømåen aebdeb183f WINTERMUTE: Use ascii for detecting printable-characters instead of Keycode. 2012-12-13 20:12:08 +01:00
Einar Johan Trøan Sømåen 7071acfa47 WINTERMUTE: Privatize members in BaseKeyboardState 2012-12-03 10:17:39 +01:00
Einar Johan Trøan Sømåen afc21941e3 WINTERMUTE: Make scGetProperty use Common::String& instead of const char* 2012-09-29 00:47:12 +02:00
Willem Jan Palenstijn b4090ead4d WINTERMUTE: Convert CRLF to LF 2012-09-04 22:17:23 +02:00
Johannes Schickel a8518eebe6 Revert "WINTERMUTE: Remove extra semicolon."
This reverts commit 9989a4f3da.
Note: Don't blind fix warnings of broken builds.

Conflicts:
	engines/wintermute/base/base_keyboard_state.cpp
2012-09-04 19:51:33 +02:00
Johannes Schickel e8f2742cc7 WINTERMUTE: Replace VKeyCodes constant names.
This is a purely cosmetical change, which should help compilation on systems,
which use VK_* for internal constants. This should help compilation for WinCE.
2012-09-04 19:43:15 +02:00
Johannes Schickel 9989a4f3da WINTERMUTE: Remove extra semicolon. 2012-09-04 19:41:58 +02:00
Einar Johan Trøan Sømåen 7b17d8060d WINTERMUTE: Fix various comments. 2012-09-01 14:04:23 +02:00
Einar Johan Trøan Sømåen fed19cb66a WINTERMUTE: WinterMute -> Wintermute 2012-08-13 03:42:30 +02:00
Einar Johan Trøan Sømåen 8ed71a99f6 WINTERMUTE: Constructor(args): SuperClass(args) -> Constructor(args) : SuperClass(args) 2012-07-27 19:37:14 +02:00
Einar Johan Trøan Sømåen 3ff2e2cc93 WINTERMUTE: Support the SPACE-key as a printable character. 2012-07-27 16:01:03 +02:00
Einar Johan Trøan Sømåen ef11f9d0c5 WINTERMUTE: Run Astyle with add-braces to break one-line statements into easier-to-read-code. 2012-07-26 15:59:26 +02:00
Einar Johan Trøan Sømåen 38507fa989 WINTERMUTE: AStyle-formatting. 2012-07-26 04:12:58 +02:00
Einar Johan Trøan Sømåen 1ad859a468 WINTERMUTE: "if(" -> "if (" 2012-07-25 21:21:55 +02:00
Einar Johan Trøan Sømåen c7eda9abc8 WINTERMUTE: Encapsulate and distance BasePersistenceManager from Base. 2012-07-23 03:42:27 +02:00
Einar Johan Trøan Sømåen aedb0aea50 WINTERMUTE: Remove dcgf.h from almost all includes. 2012-07-23 03:22:49 +02:00
Einar Johan Trøan Sømåen b5a07fef8e WINTERMUTE: Get rid of the C-prefix for class-definitions. 2012-07-21 21:01:47 +02:00
Einar Johan Trøan Sømåen 5683f07633 WINTERMUTE: Rename CamelCased filenames to prefixed_under_score-filenames
This is mostly a lead-up to namespacing the Ad/Base folders, and then
possibly removing the prefixes from the files, it also has the added
benefit of getting rid of the odd case-typos that makes for issues
on platforms that don't ignore case.
2012-07-21 19:15:33 +02:00