ioxu / key

Key, a game made with the Godot Engine 4.
MIT License
6 stars 1 forks source link

detect weapon switch between single press, double press, and timeout #45

Closed ioxu closed 2 years ago

ioxu commented 2 years ago

Input.is_action_just_pressed("switch_weapons"): cycle through states if beyond double click time or single click time

ioxu commented 2 years ago

for now, print


single TAP > 0.26661
dbl TAP 0.216723
dbl TAP 0.2
miss TAP 0.366667
single TAP > 0.25
miss TAP 0.5