immersive-home/lib/events/event_touch.gd

12 lines
243 B
GDScript3
Raw Normal View History

2023-11-28 00:46:05 +02:00
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