1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-11 04:15:25 +01:00

TouchControls: touch_use_crosshair, dig/place simulation refactoring (#15800)

-   get rid of simulated mouse events for digging/placing, use keyboard events
    instead
    -   consistent with other simulated events, less code, no need for a
        pointer position
    -   more correct: touch controls no longer break if you have custom
        dig/place keybindings set
-   move reading of "touch_use_crosshair" setting from Game to TouchControls
This commit is contained in:
grorp
2025-02-25 13:19:44 -05:00
committed by GitHub
parent abcd2e0b81
commit 5e89371ecd
5 changed files with 53 additions and 63 deletions

View File

@@ -22,7 +22,11 @@ namespace irr::video
enum touch_gui_button_id : u8
{
jump_id = 0,
// these two are no actual buttons ... yet
dig_id = 0,
place_id,
jump_id,
sneak_id,
zoom_id,
aux1_id,