Fixup for eventrecoder, to make it not eat FPS like crazy...
parent
2acc77c360
commit
8f7d6a3431
|
|
@ -40,6 +40,7 @@ LLViewerEventRecorder::LLViewerEventRecorder() {
|
|||
mLogFilename = gDirUtilp->getExpandedFilename(LL_PATH_LOGS, "SecondLife_Events_log.llsd");
|
||||
LLFile::rename(mLogFilename, old_log_ui_events_to_llsd_file);
|
||||
|
||||
setEventLoggingOff(); // <FS:ND/> Initialize ... otherwise it's random if on or off.
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -98,6 +99,7 @@ void LLViewerEventRecorder::setMouseGlobalCoords(S32 x, S32 y) {
|
|||
}
|
||||
|
||||
void LLViewerEventRecorder::updateMouseEventInfo(S32 local_x, S32 local_y, S32 global_x, S32 global_y, std::string mName) {
|
||||
if (! logEvents) return; //<FS:ND/> Do nothing if off
|
||||
|
||||
LLView * target_view = LLUI::resolvePath(LLUI::getRootView(), xui);
|
||||
if (! target_view) {
|
||||
|
|
@ -125,6 +127,7 @@ void LLViewerEventRecorder::updateMouseEventInfo(S32 local_x, S32 local_y, S32 g
|
|||
}
|
||||
|
||||
void LLViewerEventRecorder::logVisibilityChange(std::string xui, std::string name, BOOL visibility, std::string event_subtype) {
|
||||
if (! logEvents) return; //<FS:ND/> Do nothing if off
|
||||
|
||||
LLSD event=LLSD::emptyMap();
|
||||
|
||||
|
|
@ -167,6 +170,7 @@ void LLViewerEventRecorder::update_xui(std::string xui) {
|
|||
|
||||
void LLViewerEventRecorder::logKeyEvent(KEY key, MASK mask) {
|
||||
|
||||
if (! logEvents) return; //<FS:ND/> Do nothing if off
|
||||
// NOTE: Event recording only logs keydown events - the viewer itself hides keyup events at a fairly low level in the code and does not appear to care about them anywhere
|
||||
|
||||
LLSD event = LLSD::emptyMap();
|
||||
|
|
|
|||
Loading…
Reference in New Issue