Function ggez::event::run [] [src]

pub fn run<S>(ctx: &mut Context, state: &mut S) -> GameResult<()> where
    S: EventHandler

Runs the game's main loop, calling event callbacks on the given state object as events occur.

It does not try to do any type of framerate limiting. See the documentation for the timer module for more info.