945 |
* @param wait If false, this function will return once there are no more |
* @param wait If false, this function will return once there are no more |
946 |
* native events to process. If true, this function will wait |
* native events to process. If true, this function will wait |
947 |
* for the next native event. |
* for the next native event. |
948 |
|
* @return Whether something happened |
949 |
*/ |
*/ |
950 |
public static native void eventLoop(boolean wait); |
public static native boolean eventLoop(boolean wait); |
951 |
/** Interrupt the event loop. |
/** Interrupt the event loop. |
952 |
* Unlike most functions in GL, this can be called from other threads |
* Unlike most functions in GL, this can be called from other threads |
953 |
* to interrup a waiting event loop at any time. |
* to interrup a waiting event loop at any time. |