Advertisement
otorp2

mouswheel

Jan 13th, 2016
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1.  
  2. extends Node2D
  3.  
  4. func _input(event):
  5. if event.type == InputEvent.MOUSE_BUTTON:
  6. # print(event.button_index)
  7. if event.button_index == BUTTON_WHEEL_UP:
  8. print("wheel up")
  9. if event.button_index == BUTTON_WHEEL_DOWN:
  10. print("wheel down")
  11.  
  12. func _ready():
  13. set_process_input(true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement