staphen
b66b6c611b
Produce multiple controller button events for SDL_JOYHATMOTION events
3 years ago
staphen
075953a1f3
Enable use of L2/R2 on joystick
4 years ago
Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
staphen
fd2f0e3f0d
Validate gamepad button count
4 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
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
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
8c821e98d3
🚚 Restructure files
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
67a7ff98c5
🚨 Clean up compiler warnings
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
a2656637e4
🎨 Format source
5 years ago
Yuri Pourre
df56d6a03b
Rollback joystick changes
5 years ago
Yuri Pourre
e07f5aeacf
♻️ extract Controller class ( #1236 )
5 years ago
Gleb Mazovetskiy
0f46e9c4c1
Thumb stick / DPad repeating navigation in DiabloUI, gmenu, and quest log ( #1206 )
5 years ago
Gleb Mazovetskiy
b10b4381ef
Multiple controllers support ( #935 )
5 years ago
Anders Jenbo
8726e80199
Make controller enums C++03 compatible
6 years ago
Anders Jenbo
69ad34f58f
Consistently use NULL instead of nullptr
...
While nullptr does have extra checking, most of the code uses NULL and
nullptr makes it harder to port the code to some targets like the
original XBox
6 years ago
Anders Jenbo
f9d4073620
Detect when gamepads are added or removed
6 years ago
Gleb Mazovetskiy
4f3b1f0fb8
[switch] Build with CMake ( #334 )
...
* Switch port: Code changes for latest devkitpro
* switch/build.sh: Fewer devkitpro packages
6 years ago
lantus360
4c96d946c6
Initial Nintendo Switch support
6 years ago
Gleb Mazovetskiy
e2ea5b54bc
Fix devices/joystick d-pad handling
6 years ago
Gleb Mazovetskiy
5c32814820
RG350 and RetroFW improvements
...
1. Use SDL1 for RG350 for performance
2. Document controls for both
6 years ago
Gleb Mazovetskiy
14dcf6a6c8
Fix IsJoystickHatButtonPressed
6 years ago
Gleb Mazovetskiy
3c56e5aef5
Controller: Support SDL1 joystick hat
6 years ago
Gleb Mazovetskiy
6d7014b0a9
Controller: Support SDL1 joystick axes
6 years ago
Gleb Mazovetskiy
a2e821d241
Game controller support
...
Initial game controller support.
Actions are based on the Switch branch but the controller code itself is
implemented differently, allowing for easy remapping and minimizing
changes to the Source/ directory.
Many subtle and not so subtle controller bugs have been fixed
in this implementation, including:
1. Smoother & more responsive movement with the joysticks.
2. Consistent controls for all the menus in the game (stores, quest log,
etc).
3. Cursor appearance / disappearance at appropriate times.
Low-level controls are abstracted and 3 SDL interfaces are supported:
game controller, joystick, and keyboard. See SourceX/controls/ for more
details on this.
Wishlist for the future:
1. Primary button and use button should attack continously.
This is hard as it requires checking the cooldowns / attack speed.
2. Quick spell menu navigation is very buggy. It is also buggy in the
switch branch. I haven't had a change to investigate.
6 years ago