124 |
env->GetMethodID(cls, |
env->GetMethodID(cls, |
125 |
"keystroke", "(Ljava/lang/String;)V"); |
"keystroke", "(Ljava/lang/String;)V"); |
126 |
mid_mousepress = |
mid_mousepress = |
127 |
env->GetMethodID(cls, "mouse", "(IIII)V"); |
env->GetMethodID(cls, "mouse", "(IIIII)V"); |
128 |
mid_timeout = |
mid_timeout = |
129 |
env->GetMethodID(cls, "timeout", "(I)V"); |
env->GetMethodID(cls, "timeout", "(I)V"); |
130 |
mid_windowClosed = |
mid_windowClosed = |
153 |
DBG(dbg_event) << "Call finished\n"; |
DBG(dbg_event) << "Call finished\n"; |
154 |
} |
} |
155 |
|
|
156 |
virtual void mouse(int x, int y, int button, int type) { |
virtual void mouse(int x, int y, int button, int type, int modifiers) { |
157 |
|
|
158 |
jnienv_eventloop->CallVoidMethod(globalRef, mid_mousepress, x, y, button, type); |
jnienv_eventloop->CallVoidMethod(globalRef, mid_mousepress, x, y, button, type, modifiers); |
159 |
javaExc(jnienv_eventloop, "mouse"); |
javaExc(jnienv_eventloop, "mouse"); |
160 |
} |
} |
161 |
virtual void timeout(int id) { |
virtual void timeout(int id) { |