I'm doing some graphics programming using the Gosu gem. The thing is, when I create a Window my mouse pointer is hidden. I can guess where the mouse is at a certain moment, and I can intuitively click, but my users may not.
How can I show the pointer?
I'm using something like this:
class Game < Gosu::Window
def initialize
super 800, 600, false
@cursor = Gosu::Image.new(self, 'media/cursor.png')
end
def draw
@cursor.draw self.mouse_x, self.mouse_y, 0
end
end
Game.new.show