Rubygame blog migrated to WordPress By John Croisant | Published: 2010-02-24 | Comments: 2 | Filed under: Misc I’ve finally migrated the Rubygame blog from Mephisto to WordPress, like I did for my personal blog back in November. Apologies if the switchover has caused some spam in your feed reader. Comments François submitted a comment on 2010-03-24 # Hi John I hope it’s ok that I post here. I am a newbie of ruby and rubygame, and I cannot figure out where to get a method… Please do you know where I can get tutorials or examples of rubygame? Indeed I cannot find out how to get the mouse pointer’s position once the mouse has been clicked. I’ve been going through the documentation http://docs.rubygame.org/rdoc/current/ but could not find… Well I found MouseButtonEvent, but its constructor needs a position argument, which I don’t understand why it is needed to be provided here… and the constant :mouse_left is not recognized by the interpretor! well, not easy for a newbie… Please any advices are more than welcome Best Regards François François submitted a comment on 2010-03-24 # ok, problem solved : queue = EventQueue.new queue.enable_new_style_events #important queue.each do|e| return if e.is_a?(Rubygame::Events::QuitRequested) puts 'pressed'if e.is_a?(Rubygame::Events::MousePressed) end voila!