immersive-home/lib/events/event_touch.gd
2023-11-27 23:46:05 +01:00

12 lines
243 B
GDScript

extends EventBubble
class_name EventTouch
const Finger = preload("res://lib/utils/touch/finger.gd")
var fingers: Array[Finger] = []
func has_finger(finger: Finger.Type):
for f in fingers:
if f.type == finger:
return true
return false