46 Commits
Author SHA1 Message Date
obligaron dc4cd43e8f Remove duplicate function definitions from control.h 2023-12-14 22:17:57 +01:00
Gleb Mazovetskiy 848f234aed Add automap type cycling controls
Makes cycling the automap type separate from toggling it on/off.

The TAB key can still be used for quick on/off as usual, while
the new Cycle key ("m" by default) can be used to switch between available
display types.

`Get/NextDebugMonster` debug keybind changed to "v" to avoid a conflict.
2023-09-20 04:50:52 +01:00
Gleb Mazovetskiy 8c1a847f41 Remove utils/stdcompat/string_view.hpp 2023-08-14 09:59:14 +01:00
staphen 11e0ccd854 Invoke padmap release handler in menus 2023-07-09 22:06:38 +02:00
staphen 71ccd415c5 Update gamepad motion state regardless of the active event handler 2023-04-16 08:49:30 +02:00
KPhoenix a1fbf5253f enum talk_id -> enum class TalkID 2023-02-09 13:04:01 +01:00
Gleb Mazovetskiy 1788d2f8ec Remove miniwin
Event handling code moved to `engine/events.{hpp,cpp}`.
2023-02-01 16:06:57 +00:00
staphen b66b6c611b Produce multiple controller button events for SDL_JOYHATMOTION events 2022-12-05 05:05:07 +01:00
staphen f60f704ecc Reverse A and B in pad button to key translation functions 2022-11-04 11:27:14 +00:00
staphen e1167350a2 Clean up handling for gamepad IGNORE/NONE buttons 2022-11-02 07:41:30 +00:00
staphen 6a565d3755 Further improve simulated mouse interaction 2022-10-31 10:29:37 +01:00
staphen d7908d82f4 Always remove release actions from padmapper regardless of whether the action can be invoked 2022-10-31 10:29:37 +01:00
Gleb Mazovetskiy 0498d7d3a7 Fix compilation warnings 2022-10-29 13:41:23 +01:00
staphen 0f74370a99 Move gamepad logic from FetchMessage() to GameEventHandler() 2022-10-17 01:01:21 +02:00
staphen e67e4934cc Add padmapper for gamepad customization 2022-10-17 01:01:21 +02:00
staphen c90d884597 Fix skipping intro using gamepad 2022-09-08 06:11:19 +02:00
Gleb Mazovetskiy 188dc79f6e Make Players a vector 2022-08-26 13:22:04 +09:00
Gleb Mazovetskiy a4ac41cece Replace DVL_VK virtual key codes with SDLK 2022-07-17 10:00:06 +01:00
Anders Jenbo 3ae834148a Split event handeling from general miniwin features 2022-07-10 21:13:39 +02:00
Anders Jenbo 2d21fc372e Remove more miniwin code 2022-07-10 21:13:39 +02:00
Trihedraf 5ee6e5dd3a Make zoom a setting in the menu (#4931) 2022-07-10 19:59:32 +02:00
Anders Jenbo 3792b9238c [touch] Hook up action repeat 2022-04-13 02:13:31 +02:00
Anders Jenbo 66d7a3c222 [gamepad] Reuse repeat logic from mouse 2022-04-13 02:13:31 +02:00
staphen aad12e50e7 Do not process button held events in character panel 2022-04-11 12:20:06 +02:00
Gleb Mazovetskiy 4c2fa76e49 Controller mouse emulation fixes
1. Do not interrupt mouse mode on virtual clicks.
2. Handle virtual clicks directly instead of sending an SDL event.
3. Fix D-Pad mouse emulation state handling.
4. Hides the modifier hints during D-Pad mouse emulation.
2022-04-09 04:17:39 +02:00
Gleb Mazovetskiy 56de0a6566 Fix modifier + D-Pad triggering a D-Pad event
Also fixes build with `HAS_KBCTRL=1`

Fixes #1977
2022-04-05 11:24:13 +01:00
Felipe Wannmacher 889cc04f95 Enhanced attack using controllers (#4019) 2022-04-04 14:19:16 +02:00
staphen 6a30cd3950 Add gamepad support for stash 2022-03-30 23:12:09 +02:00
Anders Jenbo 0f44da5487 [gamepad] Fix using quick spells with rebound keys 2022-03-30 19:02:03 +02:00
Anders Jenbo 6b2481a76c Touch support on all SDL2 platforms 2022-01-02 11:37:38 +01:00
Gleb MazovetskiyandAnders Jenbo 7e1fea6f76 clang-format all files in {Source,test}/
Also includes a few manual tweaks to comments and newlines for better results.

Co-authored-by: Anders Jenbo <[email protected]>
2021-11-24 23:44:12 +01:00
staphen 40cc894630 Force VIRTUAL_GAMEPAD=OFF when USE_SDL1=ON 2021-11-15 00:55:32 +01:00
staphen ccd8f114f8 [Virtual Gamepad] Add menu panel to top-right corner 2021-10-26 05:14:46 +02:00
staphen 9ada44ae6b [Virtual Gamepad] Closing inventory drops item 2021-10-16 02:59:16 +02:00
staphen b8950877c5 Add buttons for using potions from belt 2021-09-25 23:21:25 +02:00
staphen 3df85b70ce Add virtual gamepad event handlers and implement touch controls 2021-09-16 19:25:31 +02:00
Anders Jenbo a19e7b2a3b Remove some more use of miniwin 2021-07-17 23:54:13 +02:00
Anders Jenbo 9ebdb6db69 General clean up 2021-07-08 03:30:25 -07:00
Anders Jenbo 9b8bf92575 Rename quest globals 2021-07-08 02:01:14 -07:00
Anders Jenbo d8729e6433 Clang-tidy: bugprone-argument-comment 2021-06-27 03:09:02 +02:00
staphen d89221b15e Close Cathedral Map when B button is pressed on the controller. 2021-05-18 12:49:30 +02:00
Anders Jenbo cc164985a3 🎨 Correct type checks in src sub-folder 2021-04-22 20:33:24 +02:00
Trihedraf cfd63a9ad0 Fix SDL1 Builds 2021-04-22 15:07:31 +02:00
Anders Jenbo 2969b80163 🎨 Run readability-identifier-naming on all src sub-folders 2021-04-22 03:53:35 +02:00
Anders Jenbo bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
Anders Jenbo 8c821e98d3 🚚 Restructure files 2021-04-16 03:57:22 +02:00