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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user