Filippos Karapetis
0f90b8eaad
SCI: Allow alt key combinations in all SCI games
...
Such key combos are used for the game debugger in SCI1.1 and GK1
2011-10-29 20:39:39 +03:00
Max Horn
88913c0139
ALL: Remove trailing whitespaces
...
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Willem Jan Palenstijn
0da3f8d8a5
SCI: Fix probable alt/shift mixup
...
A check for alt was changed into this check for shift in the
cleanup commit 906f024831
.
2011-05-21 16:02:51 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
md5
51f733b2a6
SCI: Changed debug console hotkey to Control-Shift-D instead of Control-D.
...
Applied from patch #3258985 .
The previous hotkey interfered with the hotkeys of some games (e.g.
the "time of day" hotkey in QFG2, bug #3250996 ).
2011-04-03 14:35:54 +03:00
Matthew Hoops
9a4e433f88
SCI: Fix mouse positions in upscaled games
...
A regression from 463e475bd6
2011-03-10 20:02:05 -05:00
md5
60bad3754b
SCI: Fixed regression (shift key) in the latest event code cleanup
2011-03-10 03:11:23 +02:00
Johannes Schickel
463e475bd6
SCI: Save mouse position in SciEvent.
...
Instead of querying the event manager for the current mouse cursor coordinates
kGetEvent now uses the saved mouse positions, which will assure every event
will be processed with the correct coordinates instead of the current ones.
Various other functions using SciEvent directly were adapted too.
This fixes cursor click positions for the WinCE backend.
Thanks to wjp and waltervn for helping me with this.
2011-03-09 01:19:12 +01:00
md5
906f024831
SCI: Cleanup of the event code
2011-03-09 01:47:53 +02:00
md5
bd64c5078c
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.
2011-02-15 15:46:15 +02:00
Filippos Karapetis
ce9f7c0df1
SCI: Fixed keyboard input when numlock is on, and cleaned up the way some special keys are translated
...
svn-id: r54493
2010-11-26 10:03:24 +00:00
Filippos Karapetis
fe17f26af8
SCI: Added support for the keypad +/- keys
...
svn-id: r54420
2010-11-22 18:39:06 +00:00
Filippos Karapetis
0b06a1fe7b
SCI: Proper fix for the QFG2 character import screen crashes (bug #3037996 )
...
Script 944 does constant reallocations whenever the selection changes,
which leads to all sorts of unpredictable crashes. Thanks to waltervn for
his help on this issue
svn-id: r54413
2010-11-21 23:43:14 +00:00
Filippos Karapetis
8045c4f87a
SCI: Fix for bug #3037996 - "QFG2: Crash during import dialog after time (import works)"
...
svn-id: r54407
2010-11-21 11:04:52 +00:00
Filippos Karapetis
e55a55a277
SCI: Remove key modifier (e.g. num lock) status for keyboard function keys. This fixes function key input (e.g. F3) when num lock is on
...
svn-id: r54294
2010-11-17 14:48:28 +00:00
Filippos Karapetis
9096848e4b
SCI: Throttle the invocations of Engine::shouldQuit()
...
SCI constantly invoked Engine::shouldQuit(), which in
turn called 2 virtual functions. This added a significant
overhead, as this was called constantly without any
throttling whatsoever. Now, the invocation of shouldQuit()
is throttled to be on each frame update (i.e. at a rate of
60fps). Thanks to wjp for profiling this.
svn-id: r52431
2010-08-29 00:39:33 +00:00
Filippos Karapetis
f9d9fe8f12
SCI: Added support for the DEL key
...
svn-id: r52255
2010-08-21 11:34:19 +00:00
Filippos Karapetis
dcd6c9eaf0
SCI: Fixed bug #3048911 - "Keyboard discrepancies in all SCI games" by handling synthetic (keyboard repeat) events and adding support for Control-C
...
svn-id: r52252
2010-08-21 10:46:35 +00:00
Martin Kiewitz
6b63c951eb
SCI: updating screen within kAnimate as well - fixes pseudo hang in eq1 credits (bug #3036154 )
...
svn-id: r51459
2010-07-29 10:48:54 +00:00
Martin Kiewitz
8a843b6c21
SCI: adding support for middle mouse button
...
svn-id: r51422
2010-07-28 14:57:35 +00:00
Martin Kiewitz
710f0257eb
SCI: replacing the keyboard size check for direction type detection with checking for script 933 (pseudoMouse) instead - this is better because its working multiplatform
...
svn-id: r50047
2010-06-19 10:57:01 +00:00
Martin Kiewitz
101218c1b6
SCI: added TODO for keyboard driver size check, maybe this whole stuff isn't needed at all
...
svn-id: r50046
2010-06-19 10:28:41 +00:00
Martin Kiewitz
a7fa0649df
SCI: implemented checking of keyboard driver in case of SCI1EGA/EARLY, also renamed SCI_EVENT_JOYSTICK to SCI_EVENT_DIRECTION
...
svn-id: r50045
2010-06-19 09:46:04 +00:00
Max Horn
69fb703246
SCI: cleanup scancode rows code
...
svn-id: r49964
2010-06-17 23:12:38 +00:00
Max Horn
2556ea192c
SCI: Turn _modifierStates into member of class EventManager
...
svn-id: r49963
2010-06-17 23:12:17 +00:00
Max Horn
fabba55e6d
SCI: cleanup
...
svn-id: r49961
2010-06-17 23:11:34 +00:00
Max Horn
a2bcf9ac31
SCI: Rename sciEvent to SciEvent
...
svn-id: r49960
2010-06-17 23:11:12 +00:00
Max Horn
8e07a1e167
SCI: Moved the event code a little bit around.
...
* Move sleep() from EventManager to SciEngine
* Rename EventManager methods: get -> getSciEvent, and
getFromScummVM -> getScummVMEvent
* Make scancode_rows static const
* Turn altify & numlockify from EventManager methods into static
functions (and comment out the currently unused numlockify)
svn-id: r49959
2010-06-17 23:10:37 +00:00
Filippos Karapetis
13aba8747a
Throttle screen updates to 60fps in some screen transition effects as well
...
svn-id: r49690
2010-06-15 10:09:42 +00:00
Filippos Karapetis
cfdbfaa28e
SCI: Limit the screen refresh rate to 60fps
...
svn-id: r49647
2010-06-14 08:36:52 +00:00
Filippos Karapetis
5cb311ee2c
Renamed the SciEvent class to EventManager, to separate it from the sciEvent structure, and removed it from the engine state
...
svn-id: r49534
2010-06-09 07:59:42 +00:00
Filippos Karapetis
576306c323
Re-enabled the cursor position limiting code
...
svn-id: r49413
2010-06-03 21:52:21 +00:00
Martin Kiewitz
c49930d523
SCI: fixing possible typo for Shift-F1/F10 keys, fixing submarine controls in iceman
...
svn-id: r49048
2010-05-16 17:21:37 +00:00
Martin Kiewitz
194bdd9b83
SCI: reverting r48787 port updates were actually introduced (heard that before) in SCI1. I used the outdated wiki before and that one lists qfg2 and xmas90ega being SCI01. They are actually SCI1
...
svn-id: r48789
2010-04-24 21:45:17 +00:00
Martin Kiewitz
cbd8faa82e
SCI: r48786 port updates were actually introduced during SCI01, qfg2 and xmas90ega only. We enable port updates only for non-multilingual SCI01 games now - fixes percentage bar for qfg1 japanese as well
...
svn-id: r48787
2010-04-24 20:41:26 +00:00
Martin Kiewitz
4fd93aa27c
SCI: changed comment about 8859-1->cp850/437 conversion. ubuntu does work, i just used an outdated build by accident
...
svn-id: r48724
2010-04-19 16:58:18 +00:00
Martin Kiewitz
210bc3a3ce
SCI: comment about platforms, where 8859-1 mapping is working
...
svn-id: r48708
2010-04-19 06:57:39 +00:00
Martin Kiewitz
aaa6e7ee54
SCI: key presses of extended chars (umlauts, etc.) will now get ignored in games that don't support them (which is all non-multilingual games)
...
svn-id: r48693
2010-04-17 20:43:09 +00:00
Martin Kiewitz
5c347aa70a
SCI: map keys from 8859-1 to dos codepage, makes special chars like umlauts work in multilingual games
...
svn-id: r48687
2010-04-17 14:50:31 +00:00
Max Horn
2e68de1e5a
SCI: Turn kernel_sleep() into SciEvent::sleep()
...
svn-id: r48119
2010-02-23 22:47:53 +00:00
Yotam Barnoy
ef330ed9b4
Patch for bug 2943361 by littleboy, adding full kb modifier support to all engines + GUI and proper keypad handling
...
svn-id: r48101
2010-02-21 04:04:13 +00:00
Max Horn
ac4d325e0d
SCI: Add global g_sci pointer to the active SciEngine instance
...
svn-id: r48046
2010-02-13 17:42:49 +00:00
Johannes Schickel
aed02365ec
Strip trailing spaces/tabs.
...
svn-id: r47541
2010-01-25 01:39:44 +00:00
Martin Kiewitz
41eaeaa61d
SCI: Ctrl-Z now supported as well :D
...
svn-id: r47188
2010-01-08 23:09:30 +00:00
Martin Kiewitz
af8298d4f8
SCI: removed controlify() to ease readability of code
...
svn-id: r47186
2010-01-08 22:52:50 +00:00
Martin Kiewitz
75a4ef14f1
SCI: fix for platform difference between linux and windows, makes Ctrl-Alt-keys work under linux as well (e.g. lsl1, age questions cheat)
...
svn-id: r47185
2010-01-08 22:45:38 +00:00
Martin Kiewitz
5cfd241af9
SCI: we won't do keyboard mapping for sci1late+, because otherwise Ctrl-keys won't work. I couldnt find games that use Alt-keys, so I was unable to check those as well
...
svn-id: r47175
2010-01-08 21:44:18 +00:00
Filippos Karapetis
d99aa0f126
More renaming
...
svn-id: r47009
2010-01-05 01:37:57 +00:00
Yotam Barnoy
080d6da6e4
Minor additions: added full keypad support to GUI and SCI
...
svn-id: r46808
2009-12-31 23:52:49 +00:00
Martin Kiewitz
e56dedec3f
SCI: keyboard change cleanup, fixed Ctrl and Alt related keys on foreign keyboards as well
...
svn-id: r46803
2009-12-31 17:43:54 +00:00