145 |
return 0; |
return 0; |
146 |
} |
} |
147 |
|
|
148 |
static jint |
jint |
149 |
state_to_awt_mods (guint state) |
cp_gtk_state_to_awt_mods (guint state) |
150 |
{ |
{ |
151 |
jint result = 0; |
jint result = 0; |
152 |
|
|
946 |
postMouseEventID, |
postMouseEventID, |
947 |
AWT_MOUSE_PRESSED, |
AWT_MOUSE_PRESSED, |
948 |
(jlong)event->time, |
(jlong)event->time, |
949 |
state_to_awt_mods (event->state) |
cp_gtk_state_to_awt_mods (event->state) |
950 |
| button_to_awt_mods (event->button), |
| button_to_awt_mods (event->button), |
951 |
(jint)event->x, |
(jint)event->x, |
952 |
(jint)event->y, |
(jint)event->y, |
974 |
postMouseEventID, |
postMouseEventID, |
975 |
AWT_MOUSE_RELEASED, |
AWT_MOUSE_RELEASED, |
976 |
(jlong)event->time, |
(jlong)event->time, |
977 |
state_to_awt_mods (event->state) |
cp_gtk_state_to_awt_mods (event->state) |
978 |
| button_to_awt_mods (event->button), |
| button_to_awt_mods (event->button), |
979 |
(jint)event->x, |
(jint)event->x, |
980 |
(jint)event->y, |
(jint)event->y, |
999 |
postMouseEventID, |
postMouseEventID, |
1000 |
AWT_MOUSE_CLICKED, |
AWT_MOUSE_CLICKED, |
1001 |
(jlong)event->time, |
(jlong)event->time, |
1002 |
state_to_awt_mods (event->state) |
cp_gtk_state_to_awt_mods (event->state) |
1003 |
| button_to_awt_mods (event->button), |
| button_to_awt_mods (event->button), |
1004 |
(jint)event->x, |
(jint)event->x, |
1005 |
(jint)event->y, |
(jint)event->y, |
1045 |
(*cp_gtk_gdk_env())->CallVoidMethod (cp_gtk_gdk_env(), peer, postMouseEventID, |
(*cp_gtk_gdk_env())->CallVoidMethod (cp_gtk_gdk_env(), peer, postMouseEventID, |
1046 |
AWT_MOUSE_MOVED, |
AWT_MOUSE_MOVED, |
1047 |
(jlong)event->time, |
(jlong)event->time, |
1048 |
state_to_awt_mods (event->state), |
cp_gtk_state_to_awt_mods (event->state), |
1049 |
(jint)event->x, |
(jint)event->x, |
1050 |
(jint)event->y, |
(jint)event->y, |
1051 |
0, |
0, |