immersive-home/app/lib/events/event_touch.gd
2024-03-16 01:16:08 +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