2022-11-11 19:18:21 +01:00
|
|
|
package android.view;
|
|
|
|
|
|
|
|
|
|
public final class InputQueue {
|
|
|
|
|
// for now, we will put a GtkEventController for the window here
|
|
|
|
|
private long native_ptr = 0;
|
|
|
|
|
|
2023-06-22 11:45:46 +02:00
|
|
|
public long getNativePtr() {
|
|
|
|
|
return native_ptr; // FIXME?
|
|
|
|
|
}
|
2022-11-11 19:18:21 +01:00
|
|
|
|
2023-06-22 11:45:46 +02:00
|
|
|
public static interface Callback {
|
|
|
|
|
/**
|
|
|
|
|
* Called when the given InputQueue is now associated with the
|
|
|
|
|
* thread making this call, so it can start receiving events from it.
|
|
|
|
|
*/
|
|
|
|
|
void onInputQueueCreated(InputQueue queue);
|
2022-11-11 19:18:21 +01:00
|
|
|
|
2023-06-22 11:45:46 +02:00
|
|
|
/**
|
|
|
|
|
* Called when the given InputQueue is no longer associated with
|
|
|
|
|
* the thread and thus not dispatching events.
|
|
|
|
|
*/
|
|
|
|
|
void onInputQueueDestroyed(InputQueue queue);
|
|
|
|
|
}
|
2022-11-11 19:18:21 +01:00
|
|
|
}
|