入力操作の分岐でifが並ぶのを避けたい
func _unhandled_input(event):
match event.get_class():
'InputEventScreenTouch':
print('touch')
'InputEventScreenDrag':
print('drag')
Go to list of users who liked
More than 1 year has passed since last update.
入力操作の分岐でifが並ぶのを避けたい
func _unhandled_input(event):
match event.get_class():
'InputEventScreenTouch':
print('touch')
'InputEventScreenDrag':
print('drag')
Register as a new user and use Qiita more conveniently
Go to list of users who liked