Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extends Node2D
- func _input(event):
- if event.type == InputEvent.MOUSE_BUTTON:
- # print(event.button_index)
- if event.button_index == BUTTON_WHEEL_UP:
- print("wheel up")
- if event.button_index == BUTTON_WHEEL_DOWN:
- print("wheel down")
- func _ready():
- set_process_input(true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement