Closed GoogleCodeExporter closed 9 years ago
Fixed in 9571edaeb4a775167d257bb496953b87ff472788.
Mouse and Touch now provide hasMouse() and hasTouch() methods, respectively.
This is a more robust method for determining whether the environment in which
the game is running has mouse or touch interactions. Relying on the platform to
return a null service would fail if you were using the HTML backend on a
browser that did or did not support mouse or touch interactions, as the HTML
backend always returns a mouse and touch service. They simply do not generate
mouse or touch events on platforms that don't support such interactions.
Android may some day support a mouse service if Android devices allow a
bluetooth mouse to be used with them and would naturally not return null for
mouse() at that point.
Original comment by samskiv...@gmail.com
on 3 May 2012 at 8:25
Original issue reported on code.google.com by
xtophena...@gmail.com
on 3 May 2012 at 2:35