openmw-tes3coop/apps/openmw
Fil Krynicki 91f4967614 Fix for bug 1196.
This bug would cause the player to jump when jump was assigned to
Space and they closed a dialog with Space. I tested vanilla
MW for behaviour and found that Jump was the only basic input which
MW does not allow when closing dialogs (i.e. if Space is assigned to
move forward, MW will move you forward after closing the dialog).

There were two reasons for the bug:
1) OpenMW GUI does not consume UI events
2) Jump occurs so long as key is down (not only on first key down)

To minimally fix the bug, I made it so that keypress events can be
consumed by the GUI and not passed along to the player control
input manager (1). However, if the player holds space, they will still
jump (as the subsequent key held events will be captured and cause
a jump).

Unfortunately, there is no idiomatic way that I could find in the
OpenMW input manager to perform events only on key down. Instead,
I introduced a variable which tracks whether the jump key has been
pressed for the first time within the current frame (2).

Note: I was initially concerned that limiting the jump event to
KeyDown and not Key Hold would cause issues with swimming,
levitating, or variable height jumping. However, after a bunch
of testing in vanilla MW and exploration of the OpenMW codebase
I could find nothing suggesting the need to capture the jump
key being held.
2014-05-27 13:12:27 -04:00
..
mwbase Crime is now checked every frame call 2014-04-03 00:50:09 -04:00
mwclass Feature 1154 & 73: Crime and NPC reactions 2014-04-01 20:24:25 -04:00
mwdialogue Only exchange bribe gold if the bribe was accepted 2014-03-30 00:12:31 +01:00
mwgui Avoid hard coding "thief.dds" string. 2014-04-15 22:30:41 +10:00
mwinput Fix for bug 1196. 2014-05-27 13:12:27 -04:00
mwmechanics Merge remote-tracking branch 'jeffreyhaines/master' 2014-04-15 11:31:48 +02:00
mwrender Fix visual glitch happening when closing inventory while sneaking 2014-04-06 22:21:28 +02:00
mwscript Merge remote-tracking branch 'jeffreyhaines/master' 2014-04-15 11:31:48 +02:00
mwsound Fixed code issues found with unity build. Missing include guards, duplicated functions, ... 2014-03-16 23:49:06 +01:00
mwstate Merge remote-tracking branch 'scrawl/master' 2014-03-28 09:56:35 +01:00
mwworld Merge remote-tracking branch 'jeffreyhaines/master' 2014-04-15 11:31:48 +02:00
CMakeLists.txt Merge remote-tracking branch 'jeffreyhaines/master' 2014-04-15 11:31:48 +02:00
crashcatcher.cpp crashcatcher uname error checking 2014-01-09 00:52:37 +01:00
doc.hpp first set of additional doxygen comments 2010-09-25 15:03:53 +02:00
engine.cpp Don't play company logo when using --skip-menu 2014-03-27 19:59:33 +01:00
engine.hpp moved resources group creation from Engine to bsa component 2014-03-09 11:42:39 +01:00
main.cpp Merge branch 'master' into script 2014-02-13 15:02:02 +01:00