79 int pixelArray[] = new int[bounds.width*bounds.height]; |
79 int pixelArray[] = new int[bounds.width*bounds.height]; |
80 getRGBPixelsImpl(xgc, bounds.x, bounds.y, bounds.width, bounds.height, pixelArray); |
80 getRGBPixelsImpl(xgc, bounds.x, bounds.y, bounds.width, bounds.height, pixelArray); |
81 return pixelArray; |
81 return pixelArray; |
82 } |
82 } |
83 |
83 |
84 public int getNumberOfButtons(){ |
|
85 return getNumberOfButtonsImpl(); |
|
86 } |
|
87 |
|
88 private static native synchronized void setup(); |
84 private static native synchronized void setup(); |
89 |
85 |
90 private static native synchronized void mouseMoveImpl(X11GraphicsConfig xgc, int x, int y); |
86 private static native synchronized void mouseMoveImpl(X11GraphicsConfig xgc, int x, int y); |
91 private static native synchronized void mousePressImpl(int buttons); |
87 private static native synchronized void mousePressImpl(int buttons); |
92 private static native synchronized void mouseReleaseImpl(int buttons); |
88 private static native synchronized void mouseReleaseImpl(int buttons); |
93 private static native synchronized int getNumberOfButtonsImpl(); |
|
94 private static native synchronized void mouseWheelImpl(int wheelAmt); |
89 private static native synchronized void mouseWheelImpl(int wheelAmt); |
95 |
90 |
96 private static native synchronized void keyPressImpl(int keycode); |
91 private static native synchronized void keyPressImpl(int keycode); |
97 private static native synchronized void keyReleaseImpl(int keycode); |
92 private static native synchronized void keyReleaseImpl(int keycode); |
98 |
93 |