staphen
a15a28a7c5
Correctly indicate when scroll can be used on virtual gamepad
4 years ago
staphen
1085cf1d62
Skip touch interactions with stash when stash is not open
4 years ago
staphen
6e26a8dd26
Skip touch interactions with main panel when not in a game session
4 years ago
Anders Jenbo
c68af7a5bf
[touch] Allow interacting with the spell book
...
Fixes #4393
4 years ago
Anders Jenbo
3b86c7fac4
[touch] Spend stat points when clicking the buttons
...
Fixes #4387
4 years ago
staphen
6250067283
Touchscreen navigation for stash
4 years ago
staphen
6a30cd3950
Add gamepad support for stash
4 years ago
Anders Jenbo
9226f1435c
Clean up PotionButtonRenderer
4 years ago
Anders Jenbo
a48f89007d
Implement stash
4 years ago
Gleb Mazovetskiy
7fede6c4cb
Clean up owned/unowned CelSprite ambiguity
...
Makes `CelSprite` unowned and adds a new `OwnedCelSprite` class for
owned sprites.
This clarifies ownership and makes the code cleaner in a number of
places.
Additionally, because the `CelSprite` class is now tiny (1 less
pointer), we can pass it by-value instead of by-reference, removing a
pointer indirection in the rendering functions.
4 years ago
obligaron
234a053863
Change Missiles Array to std::list
4 years ago
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
576d946581
Allow use of touch to select world objects
4 years ago
Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
Anders Jenbo
d3a7c36d1d
Correct DPI on devices that apply extra scaling
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
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
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
staphen
e2408bc6bc
[Virtual Gamepad] Set primary action button graphic to apply in char panel when applying stat points for level up
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
Anders Jenbo
284f0347cc
[touch] Add additional button faces
...
Apply color correciton
4 years ago
Anders Jenbo
8730c3b2db
[touch] Ignore irelevant input when in the inventory
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
8042bf1ab9
[gamepad] Render joystick on top of buttons
4 years ago
staphen
9ada44ae6b
[Virtual Gamepad] Closing inventory drops item
4 years ago
staphen
06801789e2
Move potion buttons to the left side
4 years ago
staphen
271740a2bc
Fix case for blank virtual gamepad potion buttons
5 years ago
staphen
d220129ddc
Only render the virtual gamepad when the game is running
5 years ago
staphen
b8950877c5
Add buttons for using potions from belt
5 years ago
staphen
1142d2ee7b
Hardware rendering for the virtual gamepad
5 years ago
staphen
471a435209
Organize virtual gamepad button graphics into frames
5 years ago
staphen
e44448f3b7
Remove unused function declaration from VirtualGamepad
5 years ago
staphen
4e93de5ee1
Remove unnecessary precompiler check in virtual gamepad initialization
5 years ago
Stephen C. Wills
7042bb991c
Remove unnecessary member initializers from virtual gamepad renderers
5 years ago
staphen
60492ef954
Add proper graphics for gamepad
5 years ago
staphen
3df85b70ce
Add virtual gamepad event handlers and implement touch controls
5 years ago
staphen
599b29d825
Add renderer for displaying virtual gamepad on screen
5 years ago
staphen
fb4f1ed8fd
Add structs for virtual gamepad
5 years ago