Commit Graph
33 Commits
Author SHA1 Message Date
Martin Gerhardy d46733ce2b TWINE: fixed ScopedKeyMap disabling of keymap
Addresses bug https://bugs.scummvm.org/ticket/11975
2020-11-26 09:43:08 +01:00
Martin Gerhardy edc226ae8e TWINE: use Rect::contains 2020-11-25 21:47:28 +01:00
Martin Gerhardy 1fbb881b19 TWINE: more use of Common::Rect 2020-11-25 17:00:44 +01:00
Martin Gerhardy e8fcff6e6d TWINE: implement ui control via mouse
Also optimized the on-screen keyboard rendering a lot, renamed
parameters and started to use Common::Rect
2020-11-25 17:00:44 +01:00
Martin Gerhardy 49be0a49a6 TWINE: changed behaviour of ScopedKeyMap
it's dangerous to disable a keymap because you could lose the action state.
Now we just enable another keymap - and disable it after we are done. So
we don't lose the action state. This fixes a problem with the hero walking
along a sign and hit the action button. We are starting the text sequence.
Once this is over and you have released the cursor keys during read, the actor
would still move.
2020-11-21 15:38:36 +01:00
Martin Gerhardy d21bfbe914 TWINE: moved cursor key mask handling into movement class 2020-11-21 15:24:46 +01:00
Martin Gerhardy a5295d0fa6 TWINE: hide member of Movements class 2020-11-21 15:24:46 +01:00
Martin Gerhardy e10aecad31 TWINE: extracted into single methods and cleanup in input code handling 2020-11-21 15:24:46 +01:00
Martin Gerhardy 3a3dc880a5 TWINE: simplified input code 2020-11-21 15:24:46 +01:00
Martin Gerhardy 976e139d27 TWINE: simplified input code 2020-11-21 15:24:46 +01:00
Martin Gerhardy 025866af83 TWINE: removed unused member from input class 2020-11-21 15:24:46 +01:00
Martin Gerhardy 28b5e2fb01 TWINE: ensure that we are ending with an invalid keymap state 2020-11-21 15:24:46 +01:00
Martin Gerhardy 631864146f TWINE: extended input class 2020-11-21 15:24:46 +01:00
Martin Gerhardy bf407a06d9 TWINE: added mouse cursor hovering helper function to input code 2020-11-18 20:29:43 +01:00
Martin Gerhardy 37054b47fc TWINE: started to convert the left/right mouse buttons to keymapper actions 2020-11-14 15:54:44 +01:00
Martin Gerhardy ab22f50b85 TWINE: fixed activating the desired keymap 2020-11-13 17:45:04 +01:00
Martin Gerhardy 39be27bbe6 TWINE: removed unused PageUp action type 2020-10-30 23:50:44 +01:00
Martin Gerhardy e93dd7d519 TWINE: removed unused entries from pressedKeyCharMap 2020-10-30 23:50:44 +01:00
Martin Gerhardy 5f7c967481 TWINE: fixed toggleAbortAction to reset all states
otherwise the next call to this function might still succeed due another action still being active
2020-10-27 17:14:05 +01:00
Martin Gerhardy 1eb3acf27a TWINE: small helper method for the Input class 2020-10-26 18:11:15 +01:00
Martin Gerhardy a8ca9e017b TWINE: make cursorKeys obsolet 2020-10-26 18:11:15 +01:00
Martin Gerhardy b90797e00d TWINE: moved pressed key states into movements class 2020-10-26 18:11:15 +01:00
Martin Gerhardy 4712894133 TWINE: make more or less private 2020-10-26 18:11:15 +01:00
Martin Gerhardy b307011170 TWINE: cleanup input code and replaced magic numbers 2020-10-26 18:11:15 +01:00
Martin Gerhardy 71921f241c TWINE: started to implement saving and loading as well as player name entering 2020-10-26 18:11:15 +01:00
Martin Gerhardy b951291d5e TWINE: removed internalKeyCode from Input class 2020-10-26 18:11:15 +01:00
Martin Gerhardy 3dd13e456b TWINE: fixed typo 2020-10-26 18:11:15 +01:00
Martin Gerhardy b159872166 TWINE: only disable our own keymaps in Input::enabledKeyMap 2020-10-25 09:21:44 +01:00
Martin Gerhardy 84f2ba7e41 TWINE: implemented more keymap actions 2020-10-24 16:12:55 +02:00
Martin Gerhardy 4c593bdbdd TWINE: further refactored the input code 2020-10-24 16:12:55 +02:00
Martin Gerhardy d417478b8c TWINE: started to split keymaps for ui, game and cutscenes 2020-10-24 16:12:55 +02:00
Martin Gerhardy c59fd6a32e TWINE: refactored input 2020-10-24 16:12:55 +02:00
Martin Gerhardy b7d5232708 TWINE: refactored input 2020-10-24 16:12:55 +02:00