summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/input.rb16
-rw-r--r--tests/testcard.rb1
2 files changed, 15 insertions, 2 deletions
diff --git a/tests/input.rb b/tests/input.rb
index 44e594d..31f1527 100644
--- a/tests/input.rb
+++ b/tests/input.rb
@@ -10,12 +10,24 @@ on key_down: 's' do
puts "s key down"
end
-on mouse: 'up' do
- puts "mouse up"
+on mouse: 'left' do
+ puts "mouse left"
+end
+
+on mouse: 'right' do
+ puts "mouse right"
end
on mouse: 'down' do
puts "mouse down"
end
+on mouse: 'up' do
+ puts "mouse up"
+end
+
+on mouse: 'any' do
+ puts "mouse any"
+end
+
show
diff --git a/tests/testcard.rb b/tests/testcard.rb
index 0dda5a2..1ab2267 100644
--- a/tests/testcard.rb
+++ b/tests/testcard.rb
@@ -8,6 +8,7 @@ puts "
Title: #{get :title}
Width: #{get :width}
Height: #{get :height}
+FPS: #{get :fps}
Self: #{get :window}\n\n"
# Primary colors