Gleb Mazovetskiy
a99cc9b40a
SDL3: Some more migration
5 months ago
Anders Jenbo
1c76897f2c
Apply simple const rules using clang-tidy
7 months ago
Nick Wicked
120993c9a9
Fix Automap movement being hardcoded to right stick on gamepad ( #7921 )
7 months ago
Eric Robinson
8eddf55c3f
Stores - IsPlayerInStore() ( #7843 )
1 year ago
staphen
29372a68fe
Remove translation from pad buttons to keys in spellbook
1 year ago
Gleb Mazovetskiy
3bb1d685af
Extract current input mode into its own library
...
Removes a transitive dependency on the entire plrctrl from options.
1 year ago
Gleb Mazovetskiy
7afdbe8fdc
Options: Extract padmapper handling from options
...
Options now only contain the padmapper settings, not the padmapping
handling code.
1 year ago
Gleb Mazovetskiy
d94bc424df
`sgOptions` -> `GetOptions()`
...
In C++, globals initialization order accross translation units is not
defined. Accessing a global via a function ensures that it is initialized.
This will be needed for #7638 , which will statically initialize change
handlers after the Options object has been initialized.
1 year ago
Gleb Mazovetskiy
a49b1f2d58
Extract Is{Any,None}Of out of engine.hpp
...
Untangles some of the dependencies
1 year ago
Eric Robinson
e90855b3c4
Rename stores.cpp global variables ( #7425 )
2 years ago
Eric Robinson
6396af1ff5
Cleanup panel code (Part 2) ( #7421 )
2 years ago
obligaron
dc4cd43e8f
Remove duplicate function definitions from control.h
2 years ago
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.
3 years ago
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
3 years ago
staphen
11e0ccd854
Invoke padmap release handler in menus
3 years ago
staphen
71ccd415c5
Update gamepad motion state regardless of the active event handler
3 years ago
KPhoenix
a1fbf5253f
`enum talk_id` -> `enum class TalkID`
3 years ago
Gleb Mazovetskiy
1788d2f8ec
Remove miniwin
...
Event handling code moved to `engine/events.{hpp,cpp}`.
3 years ago
staphen
b66b6c611b
Produce multiple controller button events for SDL_JOYHATMOTION events
3 years ago
staphen
f60f704ecc
Reverse A and B in pad button to key translation functions
3 years ago
staphen
e1167350a2
Clean up handling for gamepad IGNORE/NONE buttons
3 years ago
staphen
6a565d3755
Further improve simulated mouse interaction
3 years ago
staphen
d7908d82f4
Always remove release actions from padmapper regardless of whether the action can be invoked
3 years ago
Gleb Mazovetskiy
0498d7d3a7
Fix compilation warnings
3 years ago
staphen
0f74370a99
Move gamepad logic from FetchMessage() to GameEventHandler()
3 years ago
staphen
e67e4934cc
Add padmapper for gamepad customization
3 years ago
staphen
c90d884597
Fix skipping intro using gamepad
4 years ago
Gleb Mazovetskiy
188dc79f6e
Make `Players` a vector
4 years ago
Gleb Mazovetskiy
a4ac41cece
Replace `DVL_VK` virtual key codes with `SDLK`
4 years ago
Anders Jenbo
3ae834148a
Split event handeling from general miniwin features
4 years ago
Anders Jenbo
2d21fc372e
Remove more miniwin code
4 years ago
Trihedraf
5ee6e5dd3a
Make zoom a setting in the menu ( #4931 )
4 years ago
Anders Jenbo
3792b9238c
[touch] Hook up action repeat
4 years ago
Anders Jenbo
66d7a3c222
[gamepad] Reuse repeat logic from mouse
4 years ago
staphen
aad12e50e7
Do not process button held events in character panel
4 years ago
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.
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
staphen
6a30cd3950
Add gamepad support for stash
4 years ago
Anders Jenbo
0f44da5487
[gamepad] Fix using quick spells with rebound keys
4 years ago
Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
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
40cc894630
Force VIRTUAL_GAMEPAD=OFF when USE_SDL1=ON
4 years ago
staphen
ccd8f114f8
[Virtual Gamepad] Add menu panel to top-right corner
4 years ago
staphen
9ada44ae6b
[Virtual Gamepad] Closing inventory drops item
4 years ago
staphen
b8950877c5
Add buttons for using potions from belt
5 years ago
staphen
3df85b70ce
Add virtual gamepad event handlers and implement touch controls
5 years ago
Anders Jenbo
a19e7b2a3b
Remove some more use of miniwin
5 years ago
Anders Jenbo
9ebdb6db69
General clean up
5 years ago
Anders Jenbo
9b8bf92575
Rename quest globals
5 years ago