From 4b13dc8258d144a8240d5b72906c9d97d4e644de Mon Sep 17 00:00:00 2001 From: Tom Black Date: Fri, 1 Jan 2016 17:03:56 -0600 Subject: Updating tests FPS and mouse input --- lib/ruby2d/window.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/ruby2d/window.rb b/lib/ruby2d/window.rb index 1f05bae..322d94c 100644 --- a/lib/ruby2d/window.rb +++ b/lib/ruby2d/window.rb @@ -8,7 +8,7 @@ module Ruby2D @width, @height, @title = width, height, title @mouse_x = @mouse_y = 0 @fps_cap = fps - @fps = 0 + @fps = 60 @vsync = vsync @objects = [] @@ -86,9 +86,7 @@ module Ruby2D def on(mouse: nil, key: nil, key_down: nil, controller: nil, &proc) unless mouse.nil? - case mouse - when 'click' - end + # reg_mouse(btn, &proc) end unless key.nil? -- cgit v1.2.3