pub type SystemHook<G> = fn(&mut Game<G>, SystemEvent);Expand description
The game’s hook for the system’s events: it hears each one after App
has done its part. On SystemEvent::Suspend,
QuitRequested and
LowBattery it is where the game saves what
it hasn’t; on FocusLost, whose held input
App has let go of and whose GameSettings::BACKGROUND it applies,
it may do more (open a pause menu).