diff options
Diffstat (limited to 'MouseInput.gd')
-rw-r--r-- | MouseInput.gd | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/MouseInput.gd b/MouseInput.gd new file mode 100644 index 0000000..e47e3c7 --- /dev/null +++ b/MouseInput.gd @@ -0,0 +1,11 @@ +extends Node + +var mouse_movement = Vector2.ZERO + +func get_mouse_movement(): + var ret = mouse_movement + mouse_movement -= ret + return ret + +func add_mouse_movement(relative): + mouse_movement += relative |