Gleb Mazovetskiy
1bbe8bfe08
SDL3: Even more migration
5 months ago
Anders Jenbo
1c76897f2c
Apply simple const rules using clang-tidy
7 months ago
Gleb Mazovetskiy
d3248e969a
Untangle more dependencies
...
This allows us to make `clx_render_benchmark` and
`text_render_integration_test` standalone.
8 months ago
Eric Robinson
8eddf55c3f
Stores - IsPlayerInStore() ( #7843 )
1 year ago
staphen
e21efc26aa
Trigger deactivate event for virtual gamepad
1 year ago
Gleb Mazovetskiy
c31836eab8
Split up `engine.{h,cpp}`
...
Untangles dependencies by splitting up `engine.{h,cpp}` into 3 files:
1. `primitive_render`
2. `ticks` -- only contains `GetAnimationFrame` for now.
3. `GetWidth2` renamed to `CalculateSpriteTileCenterX` and moved to `levels/dun_tile.hpp`.
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
KPhoenix
a1fbf5253f
`enum talk_id` -> `enum class TalkID`
3 years ago
Anders Jenbo
99181fd709
Move more files to the engine folder
4 years ago
ephphatha
c68fcf3cb1
Apply MethodCase config to Rectangle::Contains
...
Also included Circle and VirtualButton classes due to the shared use.
4 years ago
staphen
0c4940fc00
Skip touch interactions with stash when stash is not open
4 years ago
staphen
0b41ce271f
Skip touch interactions with main panel when not in a game session
4 years ago
Anders Jenbo
dc706e8ed5
Use HoldItem for determining if an item is held
...
This cleans up a bit of code and solves a few edge cases where an item
could be lost, the game be unresponsive, or miss fire an event during
lag cause of the cursor not reflecting the currently held item.
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
Anders Jenbo
2e0a73e967
Disable stand button when in town
...
Fixes #3290
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
obligaron
677303cba9
Reduce use of view globals in game menu
4 years ago
staphen
08e4e8c254
Implement virtual gamepad activation/deactivation
4 years ago
staphen
85f0e7b8c3
Add button for standing still to attack
4 years ago
staphen
ccd8f114f8
[Virtual Gamepad] Add menu panel to top-right corner
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
staphen
9ada44ae6b
[Virtual Gamepad] Closing inventory drops item
4 years ago
staphen
06801789e2
Move potion buttons to the left side
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