root/CustomInputEvents/InputEventSingleScreenTouch.gd

1
2
3
4
5
6
7
8
9
10
11
12
class_name InputEventSingleScreenTouch
extends InputEventAction

var position

func _init(e):
	position = e.position
	pressed = e.pressed


func as_text():
	return "InputEventSingleScreenTouch : position=" + str(position) + ", pressed=" + str(pressed)