summaryrefslogtreecommitdiffhomepage
path: root/tests/input.rb
diff options
context:
space:
mode:
authorTom Black <[email protected]>2015-11-13 00:29:18 -0500
committerTom Black <[email protected]>2015-11-13 00:29:18 -0500
commit2e9601e22e7efe53cf4c879224a830d961213edf (patch)
tree8e1d9b3c3301b1ed78303943f56744a6a0a67d98 /tests/input.rb
parent7a96ea1932a7d9a4dd4392bfad1f60c5beb06c33 (diff)
downloadruby2d-2e9601e22e7efe53cf4c879224a830d961213edf.tar.gz
ruby2d-2e9601e22e7efe53cf4c879224a830d961213edf.zip
Updating interactive tests
Diffstat (limited to 'tests/input.rb')
-rw-r--r--tests/input.rb55
1 files changed, 11 insertions, 44 deletions
diff --git a/tests/input.rb b/tests/input.rb
index 66de596..44e594d 100644
--- a/tests/input.rb
+++ b/tests/input.rb
@@ -1,54 +1,21 @@
require 'ruby2d'
-set width: 200, height: 100
+set width: 200, height: 100, title: "Ruby 2D – Input"
on key: 'a' do
puts "a key"
end
-on key_down: 'p' do
- puts "p key down"
+on key_down: 's' do
+ puts "s key down"
end
-show
+on mouse: 'up' do
+ puts "mouse up"
+end
-# on :mouse 'up' do
-#
-# end
-#
-# on :mouse 'down' do
-#
-# end
-#
-# on :key 'a' do
-#
-# end
-#
-# on :key_down 'a' do
-#
-# end
-#
-# on :mouse 'click' do
-#
-# end
-#
-# on :mouse 'right' do
-#
-# end
-#
-# on :mouse 'left' do
-#
-# end
-#
-#
-# on key: 'any' do
-#
-# end
-#
-# on key: 'a' do
-#
-# end
-#
-# on key: 'shift' do
-#
-# end
+on mouse: 'down' do
+ puts "mouse down"
+end
+
+show