src/solaris/native/sun/xawt/XlibWrapper.c

Print this page




 506                               (unsigned int) which,
 507                               (XkbDescPtr) jlong_to_ptr(xkb));
 508 }
 509 JNIEXPORT void JNICALL Java_sun_awt_X11_XlibWrapper_XkbFreeKeyboard
 510 (JNIEnv *env, jclass clazz, jlong xkb, jlong which, jboolean free_all)
 511 {
 512     AWT_CHECK_HAVE_LOCK();
 513     XkbFreeKeyboard(jlong_to_ptr(xkb), (unsigned int)which, free_all);
 514 }
 515 JNIEXPORT jboolean JNICALL Java_sun_awt_X11_XlibWrapper_XkbTranslateKeyCode
 516 (JNIEnv *env, jclass clazz, jlong xkb, jint keycode, jlong mods, jlong mods_rtrn, jlong keysym_rtrn)
 517 {
 518     Bool b;
 519     b = XkbTranslateKeyCode((XkbDescPtr)xkb, (unsigned int)keycode, (unsigned int)mods,
 520                               (unsigned int *)jlong_to_ptr(mods_rtrn),
 521                                (KeySym *)jlong_to_ptr(keysym_rtrn));
 522     //printf("native,  input: keycode:0x%0X; mods:0x%0X\n", keycode, mods);
 523     //printf("native, output:  keysym:0x%0X; mods:0x%0X\n", *(unsigned int *)jlong_to_ptr(keysym_rtrn), *(unsigned int *)jlong_to_ptr(mods_rtrn));
 524     return b;
 525 }
 526 
 527 




 528 /*
 529  * Class:     sun_awt_X11_XlibWrapper
 530  * Method:    XNextEvent
 531  * Signature: (JJ)V
 532  */
 533 
 534 
 535 JNIEXPORT void JNICALL Java_sun_awt_X11_XlibWrapper_XNextEvent
 536 (JNIEnv *env, jclass clazz, jlong display, jlong ptr)
 537 {
 538     AWT_CHECK_HAVE_LOCK();
 539     XNextEvent( (Display *) jlong_to_ptr(display), jlong_to_ptr(ptr));
 540 }
 541 
 542 /*
 543  * Class:     sun_awt_X11_XlibWrapper
 544  * Method:    XMaskEvent
 545  * Signature: (JJJ)V
 546  */
 547 




 506                               (unsigned int) which,
 507                               (XkbDescPtr) jlong_to_ptr(xkb));
 508 }
 509 JNIEXPORT void JNICALL Java_sun_awt_X11_XlibWrapper_XkbFreeKeyboard
 510 (JNIEnv *env, jclass clazz, jlong xkb, jlong which, jboolean free_all)
 511 {
 512     AWT_CHECK_HAVE_LOCK();
 513     XkbFreeKeyboard(jlong_to_ptr(xkb), (unsigned int)which, free_all);
 514 }
 515 JNIEXPORT jboolean JNICALL Java_sun_awt_X11_XlibWrapper_XkbTranslateKeyCode
 516 (JNIEnv *env, jclass clazz, jlong xkb, jint keycode, jlong mods, jlong mods_rtrn, jlong keysym_rtrn)
 517 {
 518     Bool b;
 519     b = XkbTranslateKeyCode((XkbDescPtr)xkb, (unsigned int)keycode, (unsigned int)mods,
 520                               (unsigned int *)jlong_to_ptr(mods_rtrn),
 521                                (KeySym *)jlong_to_ptr(keysym_rtrn));
 522     //printf("native,  input: keycode:0x%0X; mods:0x%0X\n", keycode, mods);
 523     //printf("native, output:  keysym:0x%0X; mods:0x%0X\n", *(unsigned int *)jlong_to_ptr(keysym_rtrn), *(unsigned int *)jlong_to_ptr(mods_rtrn));
 524     return b;
 525 }
 526 JNIEXPORT void JNICALL Java_sun_awt_X11_XlibWrapper_XkbSetDetectableAutoRepeat
 527 (JNIEnv *env, jclass clazz, jlong display, jboolean detectable)
 528 {
 529     AWT_CHECK_HAVE_LOCK();
 530     XkbSetDetectableAutoRepeat((Display *) jlong_to_ptr(display), detectable, NULL);
 531 }
 532 /*
 533  * Class:     sun_awt_X11_XlibWrapper
 534  * Method:    XNextEvent
 535  * Signature: (JJ)V
 536  */
 537 
 538 
 539 JNIEXPORT void JNICALL Java_sun_awt_X11_XlibWrapper_XNextEvent
 540 (JNIEnv *env, jclass clazz, jlong display, jlong ptr)
 541 {
 542     AWT_CHECK_HAVE_LOCK();
 543     XNextEvent( (Display *) jlong_to_ptr(display), jlong_to_ptr(ptr));
 544 }
 545 
 546 /*
 547  * Class:     sun_awt_X11_XlibWrapper
 548  * Method:    XMaskEvent
 549  * Signature: (JJJ)V
 550  */
 551