Commit Graph
39 Commits
Author SHA1 Message Date
Walter Agazzi de34fdbe68 AGS: Fix mousepress not being tracked
This caused the "autoclick/skipping lines" bugs
2023-01-03 14:31:27 +00:00
Thierry Crozat 6163d4880a AGS: fixed CompatKey may be "none" in some cases for valid key press
From upstream f0e699392866b1b737a6b5be08790cbddbc6767d
2022-10-10 00:16:16 +01:00
Thierry Crozat 9f24f6eda4 AGS: fixed ags_misbuttondown()
Complementing afdccb3d3 (upstream 471098d)

From upstream f6e23781c4895ab79b42f97324743356aa401eec
2022-10-10 00:16:16 +01:00
Thierry Crozat 5987bc5e6e AGS: rewrote eAGSMouseButton enum to sync with the script API
* Changed from -1 - based constants to 0 - based constants;
* These were purely internal values, therefore no API would be harmed;
* Removed necessity of converting from internal mouse button code to script and back all the time;
* On a side note, this fixes a bug where WaitMouse etc were returning incorrect values on mouse skip, because we forgot to convert from internal to script code.

From upstream 471098d239b076c494beb2d554572ccb69372667
2022-10-10 00:16:16 +01:00
Paul Gilbert 81a99e5fc4 AGS: Fix keypresses in textboxes 2022-05-10 20:17:22 -07:00
Paul Gilbert 0490236774 AGS: Use old-style keycodes for internal engine commands
From upstream e2f8b0f2357d2587016425ff6629ef37601d8e0f
2022-04-29 22:20:38 -07:00
Paul Gilbert ae0609ae51 AGS: in the new key input mode, only update key state once a frame
From upstream 8c456d2e4b3c9e24f883522b59b4c73d422e4c28

Not sure if this will actually do so, since there may be other places
in the ScummVM event handler where event polling may be done.
2022-04-27 19:31:40 -07:00
Paul Gilbert 17bac5b1ef AGS: Removed redundant function domouse(int what)
From upstream 3dfda41382bdd10e3b2b78f797fade8b5dcc1efa
2022-04-23 18:15:02 -07:00
Paul Gilbert e0282d5064 AGS: Implemented key handling switch (old/new mode)
From upstream b9e23731d0d792d095c1d4e83fa1797a1afeee46
2022-04-21 20:55:38 -07:00
Paul Gilbert e736059bbe AGS: pass key modifiers as an extra arg to on_key_press
From upstream b00b82220cbabf44185e042ef33b543fe2ad3543
2022-04-21 20:23:53 -07:00
Paul Gilbert 6fb506b1fe AGS: Prevent reacting to window events during gfx mode init
From upstream b288b1ccb35b615bec9eb049352fa51adab1415a
2022-04-10 19:39:07 -07:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paul Gilbert 311f60f1f1 AGS: Separate functions for resetting input states
From upstream ece319e73f7ee783740dc936c1f4c910a900f56a
2021-07-31 14:34:09 -07:00
Paul Gilbert 73cd6b9215 AGS: Structure for passing events UTF8 text around along with the keycode
From upstream 9d65a68c61d0503e05e2cbe80447af0d619161e4

Note that ScummVM doesn't have a TEXT_INPUT event, so this change and following
ones will be mostly to keep in sync with the standalone codebase even if they're
not directly used
2021-07-10 14:33:36 -07:00
Paul Gilbert 46ddd20145 AGS: Fixed few type cast warnings
From upstream 3085660c96318f2fb4943aff6fc41dfcd6a00c3d
2021-06-13 21:09:01 -07:00
Paul Gilbert 98a9234253 AGS: Hooked in keyboard handling 2021-06-13 21:08:54 -07:00
Paul Gilbert 4b9b2aa95a AGS: Fix mouse handling 2021-06-13 21:08:54 -07:00
Paul Gilbert 87dba2e276 AGS: Re-added checks for SHOULD_QUIT and abort_engine 2021-06-13 21:08:52 -07:00
Paul Gilbert 06c5e089fd AGS: Hook up event handling 2021-06-13 21:08:51 -07:00
Paul Gilbert 701396361c AGS: Import of fresh codebase 2021-06-13 21:08:44 -07:00
Paul Gilbert b2b8b17133 AGS: Fix handling of extended keypresses 2021-04-11 19:55:21 -07:00
Paul Gilbert f6e83fa57e AGS: Move sys_events.cpp globals to Globals 2021-03-09 21:14:03 -08:00
Paul Gilbert bb488f2d58 AGS: Move dynamicsprite.cpp globals to Globals 2021-03-08 21:12:00 -08:00
Paul Gilbert 37b563ef35 AGS: Move game globals to Globals 2021-03-07 19:23:24 -08:00
Paul Gilbert 8a90168819 AGS: Move remainder of Allegro globals to Globals 2021-03-07 08:52:15 -08:00
Paul Gilbert 0a98eb1fc1 AGS: Moving more Allegro globals to Globals 2021-03-07 08:52:15 -08:00
Paul Gilbert 8c62ce9a14 AGS: Remove deprecated global_plugin.cpp 2021-03-02 19:59:35 -08:00
Paul Gilbert 334b2a9d48 AGS: Move play to Globals 2021-02-27 15:31:34 -08:00
Paul Gilbert 1a8ae27b58 AGS: Move game & spriteset into Globals 2021-02-26 21:28:53 -08:00
Paul Gilbert 6da17f421b AGS: Matching keycodes to Allegro in original 2021-02-06 16:37:31 -08:00
Paul Gilbert b71eb2de1f AGS: Fixing keys - upper/lowercase, function keys, etc 2021-02-06 16:37:31 -08:00
Paul Gilbert 7089339362 AGS: Implemented keyboard/mouse event handlers 2021-02-06 16:37:31 -08:00
Paul Gilbert fe46be9223 AGS: Added engine/ac/ folder 2021-02-06 16:37:31 -08:00
Paul Gilbert 9a78e04039 AGS: Beginnings of engine/ inclusion 2021-02-06 16:37:31 -08:00
Paul Gilbert a7a9ca0543 AGS: Adding AGS3 namespace to cpp files 2021-02-06 16:37:31 -08:00
Paul Gilbert d8e471b03c AGS: Changing Common namespace to Shared 2021-02-06 16:37:31 -08:00
dreammaster 8026e4bb30 AGS: Run astyle formatting 2021-02-06 16:37:31 -08:00
Paul Gilbert bd6a58d1a1 AGS: Adding ScummVM comment headers 2021-02-06 16:37:31 -08:00
Paul Gilbert a60d290a08 AGS: Initial addition of engine/ and shared/ folders 2021-02-06 16:37:31 -08:00