aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/event.cpp
AgeCommit message (Collapse)Author
2012-06-08SCI: Fix mouse up eventsWillem Jan Palenstijn
Regression from 906f0248317e1a4167190a666fe308a09334bfac. Fixes bug #3533069.
2011-10-29SCI: Allow alt key combinations in all SCI gamesFilippos Karapetis
Such key combos are used for the game debugger in SCI1.1 and GK1
2011-06-20ALL: Remove trailing whitespacesMax Horn
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-05-21SCI: Fix probable alt/shift mixupWillem Jan Palenstijn
A check for alt was changed into this check for shift in the cleanup commit 906f0248317e1a4167190a666fe308a09334bfac.
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-03SCI: Changed debug console hotkey to Control-Shift-D instead of Control-D.md5
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-03-10SCI: Fix mouse positions in upscaled gamesMatthew Hoops
A regression from 463e475bd65
2011-03-10SCI: Fixed regression (shift key) in the latest event code cleanupmd5
2011-03-09SCI: Save mouse position in SciEvent.Johannes Schickel
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-09SCI: Cleanup of the event codemd5
2011-02-15SCI: Cleaned up kMapKeyToDir and removed an incorrect heuristicmd5
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.
2010-11-26SCI: Fixed keyboard input when numlock is on, and cleaned up the way some ↵Filippos Karapetis
special keys are translated svn-id: r54493
2010-11-22SCI: Added support for the keypad +/- keysFilippos Karapetis
svn-id: r54420
2010-11-21SCI: Proper fix for the QFG2 character import screen crashes (bug #3037996)Filippos Karapetis
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-21SCI: Fix for bug #3037996 - "QFG2: Crash during import dialog after time ↵Filippos Karapetis
(import works)" svn-id: r54407
2010-11-17SCI: Remove key modifier (e.g. num lock) status for keyboard function keys. ↵Filippos Karapetis
This fixes function key input (e.g. F3) when num lock is on svn-id: r54294
2010-08-29SCI: Throttle the invocations of Engine::shouldQuit()Filippos Karapetis
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-21SCI: Added support for the DEL keyFilippos Karapetis
svn-id: r52255
2010-08-21SCI: Fixed bug #3048911 - "Keyboard discrepancies in all SCI games" by ↵Filippos Karapetis
handling synthetic (keyboard repeat) events and adding support for Control-C svn-id: r52252
2010-07-29SCI: updating screen within kAnimate as well - fixes pseudo hang in eq1 ↵Martin Kiewitz
credits (bug #3036154) svn-id: r51459
2010-07-28SCI: adding support for middle mouse buttonMartin Kiewitz
svn-id: r51422
2010-06-19SCI: replacing the keyboard size check for direction type detection with ↵Martin Kiewitz
checking for script 933 (pseudoMouse) instead - this is better because its working multiplatform svn-id: r50047
2010-06-19SCI: added TODO for keyboard driver size check, maybe this whole stuff isn't ↵Martin Kiewitz
needed at all svn-id: r50046
2010-06-19SCI: implemented checking of keyboard driver in case of SCI1EGA/EARLY, also ↵Martin Kiewitz
renamed SCI_EVENT_JOYSTICK to SCI_EVENT_DIRECTION svn-id: r50045
2010-06-17SCI: cleanup scancode rows codeMax Horn
svn-id: r49964
2010-06-17SCI: Turn _modifierStates into member of class EventManagerMax Horn
svn-id: r49963
2010-06-17SCI: cleanupMax Horn
svn-id: r49961
2010-06-17SCI: Rename sciEvent to SciEventMax Horn
svn-id: r49960
2010-06-17SCI: Moved the event code a little bit around.Max Horn
* 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-15Throttle screen updates to 60fps in some screen transition effects as wellFilippos Karapetis
svn-id: r49690
2010-06-14SCI: Limit the screen refresh rate to 60fpsFilippos Karapetis
svn-id: r49647
2010-06-09Renamed the SciEvent class to EventManager, to separate it from the sciEvent ↵Filippos Karapetis
structure, and removed it from the engine state svn-id: r49534
2010-06-03Re-enabled the cursor position limiting codeFilippos Karapetis
svn-id: r49413
2010-05-16SCI: fixing possible typo for Shift-F1/F10 keys, fixing submarine controls ↵Martin Kiewitz
in iceman svn-id: r49048
2010-04-24SCI: reverting r48787 port updates were actually introduced (heard that ↵Martin Kiewitz
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-24SCI: r48786 port updates were actually introduced during SCI01, qfg2 and ↵Martin Kiewitz
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-19SCI: changed comment about 8859-1->cp850/437 conversion. ubuntu does work, i ↵Martin Kiewitz
just used an outdated build by accident svn-id: r48724
2010-04-19SCI: comment about platforms, where 8859-1 mapping is workingMartin Kiewitz
svn-id: r48708
2010-04-17SCI: key presses of extended chars (umlauts, etc.) will now get ignored in ↵Martin Kiewitz
games that don't support them (which is all non-multilingual games) svn-id: r48693
2010-04-17SCI: map keys from 8859-1 to dos codepage, makes special chars like umlauts ↵Martin Kiewitz
work in multilingual games svn-id: r48687
2010-02-23SCI: Turn kernel_sleep() into SciEvent::sleep()Max Horn
svn-id: r48119
2010-02-21Patch for bug 2943361 by littleboy, adding full kb modifier support to all ↵Yotam Barnoy
engines + GUI and proper keypad handling svn-id: r48101
2010-02-13SCI: Add global g_sci pointer to the active SciEngine instanceMax Horn
svn-id: r48046
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-08SCI: Ctrl-Z now supported as well :DMartin Kiewitz
svn-id: r47188
2010-01-08SCI: removed controlify() to ease readability of codeMartin Kiewitz
svn-id: r47186
2010-01-08SCI: fix for platform difference between linux and windows, makes ↵Martin Kiewitz
Ctrl-Alt-keys work under linux as well (e.g. lsl1, age questions cheat) svn-id: r47185
2010-01-08SCI: we won't do keyboard mapping for sci1late+, because otherwise Ctrl-keys ↵Martin Kiewitz
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-05More renamingFilippos Karapetis
svn-id: r47009
2009-12-31Minor additions: added full keypad support to GUI and SCIYotam Barnoy
svn-id: r46808