Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti2003-10-02 22:45:59 +0000
committerSilenio Quarti2003-10-02 22:45:59 +0000
commitf481299acdf856ebb25233ef7ba479ef2484cdd2 (patch)
tree9d7ccd1750b2d151915daee2c9ea61c5d73fa99e /bundles/org.eclipse.swt/Eclipse SWT PI/photon
parent1327dbb9c4d5f4d1e10dd4131d0b8d95d9a9f864 (diff)
downloadeclipse.platform.swt-f481299acdf856ebb25233ef7ba479ef2484cdd2.tar.gz
eclipse.platform.swt-f481299acdf856ebb25233ef7ba479ef2484cdd2.tar.xz
eclipse.platform.swt-f481299acdf856ebb25233ef7ba479ef2484cdd2.zip
keys
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/photon')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os.c18
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java4
2 files changed, 22 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os.c
index f8a4d3701f..d986789e0d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/library/os.c
@@ -1140,6 +1140,24 @@ JNIEXPORT jint JNICALL OS_NATIVE(PhIntersectTilings)
}
#endif
+#ifndef NO_PhKeyToMb
+JNIEXPORT jint JNICALL OS_NATIVE(PhKeyToMb)
+ (JNIEnv *env, jclass that, jbyteArray arg0, jobject arg1)
+{
+ jbyte *lparg0=NULL;
+ PhKeyEvent_t _arg1, *lparg1=NULL;
+ jint rc;
+ NATIVE_ENTER(env, that, "PhKeyToMb\n")
+ if (arg0) lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL);
+ if (arg1) lparg1 = getPhKeyEvent_tFields(env, arg1, &_arg1);
+ rc = (jint)PhKeyToMb((char *)lparg0, lparg1);
+ if (arg1) setPhKeyEvent_tFields(env, arg1, lparg1);
+ if (arg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
+ NATIVE_EXIT(env, that, "PhKeyToMb\n")
+ return rc;
+}
+#endif
+
#ifndef NO_PhMakeGhostBitmap
JNIEXPORT jint JNICALL OS_NATIVE(PhMakeGhostBitmap)
(JNIEnv *env, jclass that, jint arg0)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java
index 93ac5c743d..06d5232a48 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/photon/org/eclipse/swt/internal/photon/OS.java
@@ -204,6 +204,7 @@ public class OS {
public static final int Pk_Alt_L = 0xf0e9;
public static final int Pk_Alt_R = 0xf0ea;
public static final int Pk_BackSpace = 0xf008;
+ public static final int Pk_Break = 0xF06B;
public static final int Pk_Cancel = 0xf069;
public static final int Pk_Caps_Lock = 0xf0e5;
public static final int Pk_Clear = 0xf00b;
@@ -226,6 +227,7 @@ public class OS {
public static final int Pk_F8 = 0xf0c5;
public static final int Pk_F9 = 0xf0c6;
public static final int Pk_Home = 0xf050;
+ public static final int Pk_Help = 0xF06a;
public static final int Pk_Hyper_L = 0xf0ed;
public static final int Pk_Hyper_R = 0xf0ee;
public static final int Pk_Insert = 0xf063;
@@ -237,6 +239,7 @@ public class OS {
public static final int Pk_KM_Alt = 0x4;
public static final int Pk_KM_Ctrl = 0x2;
public static final int Pk_KM_Shift = 0x1;
+ public static final int Pk_KP_Enter = 0xF08D;
public static final int Pk_KP_Tab = 0xf089;
public static final int Pk_Left = 0xf051;
public static final int Pk_Linefeed = 0xf00a;
@@ -586,6 +589,7 @@ public static final native int PhGetTile();
public static final native int PhInitDrag(int rid, int flags, PhRect_t rect, PhRect_t boundary, int input_group, PhDim_t min, PhDim_t max, PhDim_t step, PhPoint_t ptrpos, short[] cursor);
public static final native int PhInputGroup(int event);
public static final native int PhIntersectTilings(int tile1, int tile2, short[] num_intersect_tiles);
+public static final native int PhKeyToMb(byte[] buffer,PhKeyEvent_t keyevent);
public static final native int PhMakeGhostBitmap(int image);
public static final native int PhMakeTransBitmap(int image, int trans_color);
public static final native int PhMergeTiles(int tiles);

Back to the top