summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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