summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTom Black <[email protected]>2017-06-04 19:19:07 -0400
committerTom Black <[email protected]>2017-06-04 19:19:07 -0400
commit6cee86745811063a4c2c0d8225a2577f3b5142c8 (patch)
treea59355b0da6fa2c96d2fcc97f6e267c5fd103cd8
parent05820fd6b58c3c7064f89fe768f4619f906feed8 (diff)
downloadruby2d-6cee86745811063a4c2c0d8225a2577f3b5142c8.tar.gz
ruby2d-6cee86745811063a4c2c0d8225a2577f3b5142c8.zip
Update controller test for new event structure
-rw-r--r--test/controller.rb13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/controller.rb b/test/controller.rb
index 72a193f..45f8df6 100644
--- a/test/controller.rb
+++ b/test/controller.rb
@@ -1,16 +1,9 @@
require 'ruby2d'
-set width: 300, height: 200, title: "Ruby 2D — Controller"
+set title: "Ruby 2D — Controller", width: 300, height: 200
-on_controller do |which, is_axis, axis, val, is_btn, btn, pressed|
- puts "=== Controller Pressed ===",
- "which: which",
- "is_axis: #{is_axis}",
- "axis: #{axis}",
- "val: #{val}",
- "is_btn: #{is_btn}",
- "btn: #{btn}",
- "pressed: #{pressed}", ""
+on :controller do |event|
+ puts event
end
show