staphen
16b97b5f4f
Assign GameController::instance_id_ before adding to controllers_ vector
4 months ago
Gleb Mazovetskiy
88f706e0d1
SDL3: Add some backports / compat helpers
5 months ago
Gleb Mazovetskiy
1bbe8bfe08
SDL3: Even more migration
5 months ago
Gleb Mazovetskiy
a99cc9b40a
SDL3: Some more migration
5 months ago
Anders Jenbo
1c76897f2c
Apply simple const rules using clang-tidy
7 months ago
Gleb Mazovetskiy
5ff588d402
Fix some compilation warnings
2 years ago
obligaron
c8b8996cdd
Fix MSVC warnings in controls\*
2 years ago
staphen
71ccd415c5
Update gamepad motion state regardless of the active event handler
3 years ago
Gleb Mazovetskiy
c71eb0ff54
Add support for new SDL 2.24.0 gamepad types
...
Fixes #5878
3 years ago
staphen
b66b6c611b
Produce multiple controller button events for SDL_JOYHATMOTION events
3 years ago
staphen
f17ea8db98
Implement settings menu for gamepad customization
3 years ago
Gleb Mazovetskiy
f7335e9df7
Xbox nxdk: Set gamepad type
...
Set the gamepad type to Xbox for the original Xbox.
3 years ago
Nicholas Calaway
cf33230293
#3380 Use appropriate terms for mouse/gamepad/touch #5234 ( #5235 )
4 years ago
Anders Jenbo
66d7a3c222
[gamepad] Reuse repeat logic from mouse
4 years ago
staphen
075953a1f3
Enable use of L2/R2 on joystick
4 years ago
Gleb Mazovetskiy
787bc54310
Only query cbutton state for button events
...
Similar to https://github.com/diasurgical/devilutionX/pull/4374
4 years ago
Gleb Mazovetskiy
56de0a6566
Fix modifier + D-Pad triggering a D-Pad event
...
Also fixes build with `HAS_KBCTRL=1`
Fixes #1977
4 years ago
Felipe Wannmacher
889cc04f95
Enhanced attack using controllers ( #4019 )
4 years ago
Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
staphen
74a77666b9
Improve behavior of ToControllerButtonEvent()
4 years ago
Gleb Mazovetskiy
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 <anders@jenbo.dk>
4 years ago
staphen
fd2f0e3f0d
Validate gamepad button count
4 years ago
Vladimir Olteanu
61fac447cf
Fix mem leak in game_controller.cpp
5 years ago
Vladimir Olteanu
1709a97387
Fix mem leak in joystick.cpp
5 years ago
staphen
22da429d4b
Restore return statement removed by 9ebdb6d.
5 years ago
Anders Jenbo
9ebdb6db69
General clean up
5 years ago
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.
5 years ago
Anders Jenbo
a17d96129f
Fix NOLINT line for readability-convert-member-functions-to-static
...
Reverts: acd74cc0e3
5 years ago
Anders Jenbo
f167bd4dfb
Clang-tidy: llvm-include-order
5 years ago
Anders Jenbo
acd74cc0e3
Clang-tidy: readability-convert-member-functions-to-static
5 years ago
Anders Jenbo
790f42d078
Clang-tidy: readability-inconsistent-declaration-parameter-name
5 years ago
Jmgr
4fad8023ff
Fix fmt issue with a nullptr controller mapping
5 years ago
Gleb Mazovetskiy
961047ca9e
🐞 Joystick::IsHatButtonPressed should not be static
...
Follow-up to def7ba5a50
5 years ago
Jmgr
1b7e0d2cb3
Migrate existing log entries
5 years ago
Anders Jenbo
cc164985a3
🎨 Correct type checks in src sub-folder
5 years ago
Anders Jenbo
2969b80163
🎨 Run readability-identifier-naming on all src sub-folders
5 years ago
Anders Jenbo
def7ba5a50
🎨 readability-convert-member-functions-to-static
5 years ago
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
Anders Jenbo
5fdb9ce459
🎨 Format code
5 years ago
Gleb Mazovetskiy
472f86588e
OpenDingux: Update RG350 package to OD Beta
...
Unfortunately, OD Beta has a major regression with SDL joystick support,
as it always reports buttons as keyboard keys instead of actual buttons.
This partially breaks external keyboard support, where e.g. space no
longer acts as expected.
However, on balance, OD Beta is better than the 2014 firmware at this
point.
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago