bool EventsManager::isKeyMousePressed() { bool result = _leftButton || _rightButton || isKeyPending(); debounceLeft(); zeroKeys(); return result; }
bool EventsManager::isKeyMousePressed() { bool result = _leftButton || _rightButton || isKeyPending(); debounceMouse(); clearEvents(); return result; }
bool EventsManager::wait(uint numFrames, bool interruptable) { while (!_vm->shouldQuit() && timeElapsed() < numFrames) { pollEventsAndWait(); if (interruptable && (_leftButton || _rightButton || isKeyPending())) return true; } return false; }