Anders Jenbo
2e0a73e967
Disable stand button when in town
...
Fixes #3290
4 years ago
staphen
d193b90101
Don't deactivate gamepad when graphics settings change
4 years ago
Anders Jenbo
b0252b3339
Make Gamepad cursor independant of hardware mouse
...
The gamepad cursor (inventory, spells etc) no longer relies on warping a
real mouse cursor. This should make things work better on platforms that
do not support this, like Wayland.
4 years ago
Anders Jenbo
576d946581
Allow use of touch to select world objects
4 years ago
Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
staphen
74a77666b9
Improve behavior of ToControllerButtonEvent()
4 years ago
obligaron
419fe7b7ec
Change Keymapper to OptionCategory/OptionEntry
4 years ago
Gleb Mazovetskiy
fee39d46fa
DiabloUI: Handle mouse back button in menus
4 years ago
qndel
be0b79f9f5
Add IsWallSpell helper
4 years ago
Anders Jenbo
28ad032a2f
🐛 [gamepad] Fix casting lightningwalls
...
Fixes #3694
4 years ago
Anders Jenbo
d3a7c36d1d
Correct DPI on devices that apply extra scaling
4 years ago
Vladimir Olteanu
861fb99e9d
Quick cast
4 years ago
Gleb Mazovetskiy
c57644970f
Move `UiFlags` and `UiPanels` into their own files
...
The first breaks circular dependency between `DiabloUI` and `text_render`.
The latter one moves `UiPanels` to a more appropriate place.
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
Gleb Mazovetskiy
8d1708358f
Extract spell list and book into separate files
...
Moves the spell list/book UI from `control.cpp` code into separate files.
4 years ago
obligaron
677303cba9
Reduce use of view globals in game menu
4 years ago
staphen
08e4e8c254
Implement virtual gamepad activation/deactivation
4 years ago
staphen
40cc894630
Force VIRTUAL_GAMEPAD=OFF when USE_SDL1=ON
4 years ago
Anders Jenbo
56170b3372
Clean up id normalization
4 years ago
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG ( #3135 )
4 years ago
Gleb Mazovetskiy
3d308983a8
Migrate to libmpq
...
libmpq is a much simpler alternative to StormLib for reading MPQ archives.
We use our own fork of libmpq: https://github.com/diasurgical/libmpq
Impact:
* DevilutionX is now a lot more portable. Unlike StormLib, libmpq only
needs platform-specific code for Windows.
* Locks around file access **removed** (instead we duplicate the file descriptor for streamed audio only).
* RAM usage is **300 KiB** lower than StormLib.
* Stripped release linux_x86_64 binary is **32 KiB** smaller.
* Amiga build now hangs instead of crashing.
4 years ago
Gleb Mazovetskiy
12b73076b8
Fix build error in plrctrl.cpp ( #3374 )
...
Follow-up to #3370
4 years ago
Stephen C. Wills
423441c3dc
Fix speedbook navigation on gamepad
4 years ago
staphen
884f9ed46b
[Virtual Gamepad] Turn player when stand button is pressed
4 years ago
ephphatha
6d545868d2
Move objectIsDisabled to a member function
...
While it does reference a global configuration option it's mainly concerned with the properties of the object itself, so makes sense to be a member of the object class.
4 years ago
Anders Jenbo
c0c97bf224
[gamepad] Operate object as last option for primery action
...
Fixes #3307
4 years ago
staphen
f090da3ca8
[Gamepad] Prevent player applying stat points to maxed stat
4 years ago
staphen
e2408bc6bc
[Virtual Gamepad] Set primary action button graphic to apply in char panel when applying stat points for level up
4 years ago
qndel
9c10f43019
disable using crippling shrines with controller
4 years ago
staphen
85f0e7b8c3
Add button for standing still to attack
4 years ago
Anders Jenbo
609414fd69
[touch] Indicate level up in a touch friendly way
4 years ago
staphen
ccd8f114f8
[Virtual Gamepad] Add menu panel to top-right corner
4 years ago
Anders Jenbo
396aa449d2
[touch] Update button faces
4 years ago
Anders Jenbo
488acf0eba
[touch] Fix some button faces
4 years ago
staphen
a6807beb59
Improve gamepad cursor positioning when picking up items in inventory
4 years ago
Anders Jenbo
284f0347cc
[touch] Add additional button faces
...
Apply color correciton
4 years ago
staphen
76de43fb0a
[Gamepad] Use secondary action button to apply oils
4 years ago
staphen
900af16a9e
Fix distributing stat points using gamepad
4 years ago
Anders Jenbo
d5999e6027
[gamepad] Only warp the cursor if item was moved
4 years ago
Anders Jenbo
8e70cd7a37
[gamepad] Fix OOB when using equiped items
4 years ago
Anders Jenbo
8730c3b2db
[touch] Ignore irelevant input when in the inventory
4 years ago
Anders Jenbo
3d38e6ce88
[gamepad] Correctly jump over items horizontally
4 years ago
Anders Jenbo
2f925bfeb7
[gamepad] Prevent warping from row 9 and 10 to belt
4 years ago
Anders Jenbo
1ba7e07b29
Do not show the cursor when using a touch device
4 years ago
Anders Jenbo
b3a9a2ddce
[gamepad] Allow for mixed mode navigation in inventory
4 years ago
Anders Jenbo
78c4f06e9e
[gamepad] Remove item warping
4 years ago
Anders Jenbo
8042bf1ab9
[gamepad] Render joystick on top of buttons
4 years ago
Anders Jenbo
808702fe92
[gamepad] Make horizontal inventory navigation stable
4 years ago
staphen
9ada44ae6b
[Virtual Gamepad] Closing inventory drops item
4 years ago
staphen
5a75e076b6
[Gamepad] Don't treat special cursors as items
4 years ago