Merge pull request #1570 from seanpaultaylor/next

Fixes for newproject.bat
Refactoring for Platform gamepad events.