godot/platform
Manuel Lagang fa62125e05 Modifiers are unset on events for the modifier key itself
This patch removes modifiers when processing key events for the
particular modifier key. For example, previously a Shift keypress
would register as a Shift + Shift modifier event.

This would cause issues when a modifier key as the action key in
the input map, because unpresses of the modifier key don't match as
matching inputs for that action. E.g. if Shift is used as an action,
the stored action event is Shift + Shift modifier (as indicated
in the editor as "Shift + Shift". The unpress event does not have the
Shift modifier set, so the event of unpressing Shift + no modifier
doesn't match the action which has the modifier set.

This patch removes the shift modifier on just pressing the Shift
key down, so the action event is registered as just Shift with
no modifier (as indicated in the editor as "Shift"), which matches
the unpress event.
2015-01-17 22:40:01 -08:00
..
android Merge branch 'master' of https://github.com/okamstudio/godot 2015-01-13 11:23:05 -03:00
bb10 Merge pull request #643 from adolson/custom-export-binary-path-fix 2014-09-17 09:53:43 -03:00
flash Build System Changes 2014-10-07 01:31:49 -03:00
iphone 2D Rewrite Step [1] 2015-01-10 17:35:26 -03:00
isim 2D Rewrite Step [1] 2015-01-10 17:35:26 -03:00
javascript Build System Changes 2014-10-07 01:31:49 -03:00
nacl 2D Rewrite Step [1] 2015-01-10 17:35:26 -03:00
osx Create the test string to detect kb layouts directly from the unicode chars 2015-01-08 10:31:10 -04:30
server Build System Changes 2014-10-07 01:31:49 -03:00
windows Modifiers are unset on events for the modifier key itself 2015-01-17 22:40:01 -08:00
winrt -Work in progress visual shader editor *DOES NOT WORK YET* 2015-01-03 16:52:37 -03:00
x11 Merge branch 'master' of https://github.com/okamstudio/godot 2015-01-13 11:23:05 -03:00