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

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