summaryrefslogtreecommitdiffhomepage
path: root/deploy_template/mygame/documentation/07-mouse.md
diff options
context:
space:
mode:
author_Tradam <[email protected]>2021-12-16 19:22:26 -0500
committerGitHub <[email protected]>2021-12-16 19:22:26 -0500
commit5954b9beb4d4a3b4f248d72d1851195f030558a8 (patch)
treefecd8aa840a25afdb502915b0fdb4d03b7ed339a /deploy_template/mygame/documentation/07-mouse.md
parent2f845281f133849256b57bb08fd3e9ae57600784 (diff)
parenteaa29e72939f5edf61735ccbb73c36ee89369f65 (diff)
downloaddragonruby-game-toolkit-contrib-master.tar.gz
dragonruby-game-toolkit-contrib-master.zip
Merge branch 'DragonRuby:master' into masterHEADmaster
Diffstat (limited to 'deploy_template/mygame/documentation/07-mouse.md')
-rw-r--r--deploy_template/mygame/documentation/07-mouse.md48
1 files changed, 0 insertions, 48 deletions
diff --git a/deploy_template/mygame/documentation/07-mouse.md b/deploy_template/mygame/documentation/07-mouse.md
deleted file mode 100644
index 2af8854..0000000
--- a/deploy_template/mygame/documentation/07-mouse.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# Mouse
-
-Determining current position of mouse:
-
-```
-args.inputs.mouse.x
-args.inputs.mouse.y
-```
-
-Determining if the mouse has been clicked, and it's position. Note:
-`click` and `down` are aliases for each other.
-
-```
-if args.inputs.mouse.click
- puts "click: #{args.inputs.mouse.click}"
- puts "x: #{args.inputs.mouse.click.point.x}"
- puts "y: #{args.inputs.mouse.click.point.y}"
-end
-```
-
-Determining if the mouse button has been released:
-
-```
-if args.inputs.mouse.up
- puts "up: #{args.inputs.mouse.up}"
- puts "x: #{args.inputs.mouse.up.point.x}"
- puts "y: #{args.inputs.mouse.up.point.y}"
-end
-```
-
-Determine which mouse button(s) have been clicked (also works for up):
-```
-if args.inputs.mouse.click
- puts "left: #{args.inputs.mouse.button_left}"
- puts "middle: #{args.inputs.mouse.button_middle}"
- puts "right: #{args.inputs.mouse.button_right}"
- puts "x1: #{args.inputs.mouse.button_x1}"
- puts "x2: #{args.inputs.mouse.button_x2}"
-end
-```
-
-Determine if the mouse wheel is being used and its values for this tick:
-```
-if args.inputs.mouse.wheel
- puts "The wheel moved #{args.inputs.mouse.wheel.x} left/right"
- puts "The wheel moved #{args.inputs.mouse.wheel.y} up/down"
-end
-```