Anders Jenbo
128811aff1
[gamepad/touch] Fix targeting berserked
...
Fixes #5103
4 years ago
Nicholas Calaway
ab3eb84581
Fix bad interaction between hold to attack and quick cast ( #4965 )
4 years ago
staphen
05732bef99
Check player hitpoints in InGameMenu()
4 years ago
Anders Jenbo
66d7a3c222
[gamepad] Reuse repeat logic from mouse
4 years ago
Gleb Mazovetskiy
235451ae5a
Reduce debug log output of Control
4 years ago
staphen
2759eb130b
Update player's spell target when using quick cast on gamepad
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
Felipe Wannmacher
889cc04f95
Enhanced attack using controllers ( #4019 )
4 years ago
Gleb Mazovetskiy
79c7eee10a
Mouse/Gamepad fixes
...
Introduces a `ControlDevice` global which is distinct from `ControlMode`
in that it is set to `Gamepad` even when simulating a mouse.
This allows us to avoid a number of edge cases related to mode changes.
Fixes #4242
4 years ago
staphen
e6182709d1
Allow casting Town Portal, Teleport, and Guardian scrolls from inventory
4 years ago
staphen
6a30cd3950
Add gamepad support for stash
4 years ago
Anders Jenbo
8235380ef9
[gamepad] Avoid OOB on empty belt
4 years ago
Anders Jenbo
9d65580294
[gamepad] Fix managing belt
4 years ago
obligaron
481f15ded5
Introduce StashStruct.GetPage/SetPage
4 years ago
Anders Jenbo
6d28810dc7
Change infostr from char[128] to std::string
4 years ago
Anders Jenbo
fbabb96464
[gamepad] Align cursor after using item
4 years ago
Anders Jenbo
a48f89007d
Implement stash
4 years ago
qndel
48f102eff1
Chat log
4 years ago
ephphatha
db1d776539
Deduplicate PItem and DItem
4 years ago
obligaron
234a053863
Change Missiles Array to std::list
4 years ago
ephphatha
3bc2eb8471
Use ObjectAtPosition when highlighting from gamepad movement
4 years ago
ephphatha
5c4f6d80e8
Use Point/range iterator in FindItemOrObject
...
This addresses a todo comment, though not in the way that was originally intended as we no longer use Direction::Omni
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
qndel
be0b79f9f5
Add IsWallSpell helper
4 years ago
Anders Jenbo
28ad032a2f
🐛 [gamepad] Fix casting lightningwalls
...
Fixes #3694
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
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
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
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
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
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