void EventsManager::init() { if (!GfxMan.ready()) throw Common::Exception("The GraphicsManager needs to be initialized first"); RequestMan.init(); NotificationMan.init(); TimerMan.init(); _fullQueue = false; _queueSize = 0; _ready = true; initJoysticks(); SDL_RegisterEvents(1); std::srand(getTimestamp()); // Forcing enableTextInput to be disabled requires _textInputCounter = 1 to not underrun the counter. _textInputCounter = 1; enableTextInput(false); _repeatCounter = 0; }
void EventsManager::init() { if (!GfxMan.ready()) throw Common::Exception("The GraphicsManager needs to be initialized first"); RequestMan.init(); NotificationMan.init(); TimerMan.init(); _fullQueue = false; _queueSize = 0; _ready = true; initJoysticks(); SDL_RegisterEvents(1); std::srand(getTimestamp()); enableTextInput(false); }