diff options
author | dusoleil <howcansocksbereal@gmail.com> | 2022-07-22 14:31:20 -0400 |
---|---|---|
committer | dusoleil <howcansocksbereal@gmail.com> | 2022-07-22 14:31:20 -0400 |
commit | 2a5aa7dc898b57d58e941d24b03a1d83ff9ddd81 (patch) | |
tree | 1b60b1f7fea4f43c7d759d3adc6c9dae28e52087 /MouseInput.gd | |
parent | 914aa9e08061db55db4d445e8e43f71603dca634 (diff) | |
download | chicken-chaser-gd-2a5aa7dc898b57d58e941d24b03a1d83ff9ddd81.tar.gz chicken-chaser-gd-2a5aa7dc898b57d58e941d24b03a1d83ff9ddd81.zip |
chiken
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 |