Adds suspend event mapped to application lifecycle

On Android WillSuspend and WillResume maps to focus and DidSuspend and
DidResume maps to onPause and onResume.

On OSX WillSuspend and DidSuspend maps to resign key, WillResume and
DidResumg maps to make key.
This commit is contained in:
Richard Gale
2015-08-24 19:12:01 -07:00
parent ea88ba93fb
commit 631103bfa8
7 changed files with 129 additions and 9 deletions

View File

@@ -464,7 +464,10 @@ BX_PRAGMA_DIAGNOSTIC_POP();
case Event::Window:
break;
default:
case Event::Suspend:
break;
default:
break;
}
}