Game Development Community

Hide the cursor!

by Dave Young · in iTorque 2D · 01/19/2009 (9:37 am) · 4 replies

Which is the option/pref to not show any cursor on the iPhone app, and will touches still work?



#1
01/19/2009 (10:10 am)
Drop this in your game.cs startGame function:
Canvas.hidecursor();

That will get rid of the mouse pointer cursor & will still let your touches work.
#2
01/19/2009 (10:41 am)
ha! just like it should have been. Thanks Bryan, I should've tried that first :)

Edit: I wanted to confirm for everyone that this worked fine.
#3
01/19/2009 (7:41 pm)
Glad it worked!
#4
02/02/2009 (9:49 am)
that is good to know. I used an empty image instead of the cursor image. but hideCursor() seems like the way to go. less fill rate