22 Commits
Author SHA1 Message Date
Gleb Mazovetskiy c71eb0ff54 Add support for new SDL 2.24.0 gamepad types
Fixes #5878
2023-03-26 13:28:03 +01:00
staphen f17ea8db98 Implement settings menu for gamepad customization 2022-11-27 18:27:21 +01:00
Gleb Mazovetskiy f7335e9df7 Xbox nxdk: Set gamepad type
Set the gamepad type to Xbox for the original Xbox.
2022-10-12 02:45:38 +01:00
Nicholas Calaway cf33230293 #3380 Use appropriate terms for mouse/gamepad/touch #5234 (#5235) 2022-08-17 00:36:58 +02:00
Gleb Mazovetskiy 787bc54310 Only query cbutton state for button events
Similar to https://github.com/diasurgical/devilutionX/pull/4374
2022-04-10 16:10:04 +01:00
Felipe Wannmacher 889cc04f95 Enhanced attack using controllers (#4019) 2022-04-04 14:19:16 +02:00
Anders Jenbo 6b2481a76c Touch support on all SDL2 platforms 2022-01-02 11:37:38 +01:00
staphen 74a77666b9 Improve behavior of ToControllerButtonEvent() 2021-12-24 23:08:41 +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 fd2f0e3f0d Validate gamepad button count 2021-10-10 23:26:09 +02:00
Vladimir Olteanu 61fac447cf Fix mem leak in game_controller.cpp 2021-08-17 17:46:13 +02:00
ephphatha 08ae390643 Add explicit casts for some implicit conversions
Some of these were triggering multiple warnings due to casts applied at times which forced potentially truncating operations.
2021-07-05 08:52:05 -07:00
Anders Jenbo f167bd4dfb Clang-tidy: llvm-include-order 2021-06-27 01:45:49 +02:00
Jmgr 4fad8023ff Fix fmt issue with a nullptr controller mapping 2021-05-02 13:14:59 +02:00
Jmgr 1b7e0d2cb3 Migrate existing log entries 2021-04-25 02:39:42 +02:00
Anders Jenbo cc164985a3 🎨 Correct type checks in src sub-folder 2021-04-22 20:33:24 +02:00
Anders Jenbo 2969b80163 🎨 Run readability-identifier-naming on all src sub-folders 2021-04-22 03:53:35 +02:00
Anders Jenbo def7ba5a50 🎨 readability-convert-member-functions-to-static 2021-04-22 00:53:19 +02:00
Anders Jenbo 373f28736f 🎨 Acceptable parts of modernize-* 2021-04-19 22:42:19 +02:00
Anders Jenbo bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
Anders Jenbo 5fdb9ce459 🎨 Format code 2021-04-19 00:37:33 +02:00
Anders Jenbo 8c821e98d3 🚚 Restructure files 2021-04-16 03:57:22 +02:00