basic touch input

This commit is contained in:
2021-08-05 23:33:26 +02:00
parent 02ba2bb95a
commit 01a4e93f3f
6 changed files with 247 additions and 19 deletions

View File

@@ -48,6 +48,7 @@ scan_code = 64
[[button]]
name = "select"
mouse = "left"
touch = 1
[[axis]]
name = "move_forward"

View File

@@ -4,4 +4,5 @@ mesh_load_info = true
[input]
mouse_motion = false
buttons = false
touch = true
missing_bindings = true

31
config/testinput.toml Normal file
View File

@@ -0,0 +1,31 @@
[[button]]
name = "quit"
scan_code = 1
[[button]]
name = "select"
mouse = "left"
[[button]]
name = "touchclick"
touch = 1
[[button]]
name = "doubletouchclick"
touch = 2
[[button]]
name = "button_left"
scan_code = 30
[[button]]
name = "button_right"
scan_code = 32
[[axis]]
name = "move_sideways"
positive_button = "button_right"
negative_button = "button_left"
[config]
line_height_px = 16