Fixed Input, added defines

* Fixed error System::window is NULL
+ Added defines APP_WIDTH and APP_HEIGHT