Commit 806515d 1 parent c7914e9 commit 806515d Copy full SHA for 806515d
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ void jni_EventDispatcher(uiohook_event * const event) {
40
40
/* The following start and stop functions are less than ideal for attaching JNI.
41
41
* TODO Consider moving threads out of the lib and into Java.
42
42
*/
43
- case EVENT_THREAD_START :
43
+ case EVENT_THREAD_STARTED :
44
44
if ((* jvm )-> GetEnv (jvm , (void * * )(& env ), jvm_attach_args .version ) == JNI_EDETACHED ) {
45
45
(* jvm )-> AttachCurrentThread (jvm , (void * * )(& env ), & jvm_attach_args );
46
46
}
47
47
break ;
48
48
49
- case EVENT_THREAD_STOP :
49
+ case EVENT_THREAD_STOPPED :
50
50
// NOTE This callback may note be called from Windows under some circumstances.
51
51
if ((* jvm )-> GetEnv (jvm , (void * * )(& env ), jvm_attach_args .version ) == JNI_OK ) {
52
52
if ((* jvm )-> DetachCurrentThread (jvm ) == JNI_OK ) {
@@ -55,8 +55,8 @@ void jni_EventDispatcher(uiohook_event * const event) {
55
55
}
56
56
break ;
57
57
58
- case EVENT_HOOK_START :
59
- case EVENT_HOOK_STOP :
58
+ case EVENT_HOOK_ENABLED :
59
+ case EVENT_HOOK_DISABLED :
60
60
break ;
61
61
62
62
case EVENT_KEY_PRESSED :
You can’t perform that action at this time.
0 commit comments