protected virtual void ProcessEvents() {
int flags = GetEventFlags();
triggered = ((flags & kTriggered) != 0);
tilted = ((flags & kTilted) != 0);
backButtonPressed = ((flags & kVRBackButtonPressed) != 0);
if ((flags & kProfileChanged) != 0) {
UpdateScreenData();
}
}