Closed crazy2be closed 11 years ago
I actually think I might try and do some more cleanup in InputHandler, so don't merge this yet please.
Also testable "live" at http://www.justinmcgirr.com/gitdefence/touch/game/
Actually, my fixes would be harder than I thought, so you can merge this if you want.
Touch is working now on my Android in the native browser.
It's not totally perfect, because the game doesn't take up the full browser window like it should. However, it's pretty good, and certainly much better than it was.
I also renamed this -> self in inputHandler (I've been doing that in lots of other files too lately), because this allows us to pass member functions to to callbacks without using bind(), and allows us to have private functions without having to do var that = this; nonsense everywhere.