Versions in this module Expand all Collapse all v0 v0.0.3 Mar 16, 2026 Changes in this version + const AINPUT_EVENT_TYPE_CAPTURE + const AINPUT_EVENT_TYPE_DRAG + const AINPUT_EVENT_TYPE_FOCUS + const AINPUT_EVENT_TYPE_KEY + const AINPUT_EVENT_TYPE_MOTION + const AINPUT_EVENT_TYPE_TOUCH_MODE + const AINPUT_KEYBOARD_TYPE_ALPHABETIC + const AINPUT_KEYBOARD_TYPE_NONE + const AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC + const AINPUT_MOTION_RANGE_ORIENTATION + const AINPUT_MOTION_RANGE_PRESSURE + const AINPUT_MOTION_RANGE_SIZE + const AINPUT_MOTION_RANGE_TOOL_MAJOR + const AINPUT_MOTION_RANGE_TOOL_MINOR + const AINPUT_MOTION_RANGE_TOUCH_MAJOR + const AINPUT_MOTION_RANGE_TOUCH_MINOR + const AINPUT_MOTION_RANGE_X + const AINPUT_MOTION_RANGE_Y + const AINPUT_SOURCE_ANY + const AINPUT_SOURCE_BLUETOOTH_STYLUS + const AINPUT_SOURCE_CLASS_BUTTON + const AINPUT_SOURCE_CLASS_JOYSTICK + const AINPUT_SOURCE_CLASS_MASK + const AINPUT_SOURCE_CLASS_NAVIGATION + const AINPUT_SOURCE_CLASS_NONE + const AINPUT_SOURCE_CLASS_POINTER + const AINPUT_SOURCE_CLASS_POSITION + const AINPUT_SOURCE_DPAD + const AINPUT_SOURCE_GAMEPAD + const AINPUT_SOURCE_HDMI + const AINPUT_SOURCE_JOYSTICK + const AINPUT_SOURCE_KEYBOARD + const AINPUT_SOURCE_MOUSE + const AINPUT_SOURCE_MOUSE_RELATIVE + const AINPUT_SOURCE_ROTARY_ENCODER + const AINPUT_SOURCE_SENSOR + const AINPUT_SOURCE_STYLUS + const AINPUT_SOURCE_TOUCHPAD + const AINPUT_SOURCE_TOUCHSCREEN + const AINPUT_SOURCE_TOUCH_NAVIGATION + const AINPUT_SOURCE_TRACKBALL + const AINPUT_SOURCE_UNKNOWN + const AKEY_EVENT_ACTION_DOWN + const AKEY_EVENT_ACTION_MULTIPLE + const AKEY_EVENT_ACTION_UP + const AKEY_EVENT_FLAG_CANCELED + const AKEY_EVENT_FLAG_CANCELED_LONG_PRESS + const AKEY_EVENT_FLAG_EDITOR_ACTION + const AKEY_EVENT_FLAG_FALLBACK + const AKEY_EVENT_FLAG_FROM_SYSTEM + const AKEY_EVENT_FLAG_KEEP_TOUCH_MODE + const AKEY_EVENT_FLAG_LONG_PRESS + const AKEY_EVENT_FLAG_SOFT_KEYBOARD + const AKEY_EVENT_FLAG_TRACKING + const AKEY_EVENT_FLAG_VIRTUAL_HARD_KEY + const AKEY_EVENT_FLAG_WOKE_HERE + const AKEY_STATE_DOWN + const AKEY_STATE_UNKNOWN + const AKEY_STATE_UP + const AKEY_STATE_VIRTUAL + const AMETA_ALT_LEFT_ON + const AMETA_ALT_ON + const AMETA_ALT_RIGHT_ON + const AMETA_CAPS_LOCK_ON + const AMETA_CTRL_LEFT_ON + const AMETA_CTRL_ON + const AMETA_CTRL_RIGHT_ON + const AMETA_FUNCTION_ON + const AMETA_META_LEFT_ON + const AMETA_META_ON + const AMETA_META_RIGHT_ON + const AMETA_NONE + const AMETA_NUM_LOCK_ON + const AMETA_SCROLL_LOCK_ON + const AMETA_SHIFT_LEFT_ON + const AMETA_SHIFT_ON + const AMETA_SHIFT_RIGHT_ON + const AMETA_SYM_ON + const AMOTION_EVENT_ACTION_BUTTON_PRESS + const AMOTION_EVENT_ACTION_BUTTON_RELEASE + const AMOTION_EVENT_ACTION_CANCEL + const AMOTION_EVENT_ACTION_DOWN + const AMOTION_EVENT_ACTION_HOVER_ENTER + const AMOTION_EVENT_ACTION_HOVER_EXIT + const AMOTION_EVENT_ACTION_HOVER_MOVE + const AMOTION_EVENT_ACTION_MASK + const AMOTION_EVENT_ACTION_MOVE + const AMOTION_EVENT_ACTION_OUTSIDE + const AMOTION_EVENT_ACTION_POINTER_DOWN + const AMOTION_EVENT_ACTION_POINTER_INDEX_MASK + const AMOTION_EVENT_ACTION_POINTER_UP + const AMOTION_EVENT_ACTION_SCROLL + const AMOTION_EVENT_ACTION_UP + const AMOTION_EVENT_AXIS_BRAKE + const AMOTION_EVENT_AXIS_DISTANCE + const AMOTION_EVENT_AXIS_GAS + const AMOTION_EVENT_AXIS_GENERIC_1 + const AMOTION_EVENT_AXIS_GENERIC_10 + const AMOTION_EVENT_AXIS_GENERIC_11 + const AMOTION_EVENT_AXIS_GENERIC_12 + const AMOTION_EVENT_AXIS_GENERIC_13 + const AMOTION_EVENT_AXIS_GENERIC_14 + const AMOTION_EVENT_AXIS_GENERIC_15 + const AMOTION_EVENT_AXIS_GENERIC_16 + const AMOTION_EVENT_AXIS_GENERIC_2 + const AMOTION_EVENT_AXIS_GENERIC_3 + const AMOTION_EVENT_AXIS_GENERIC_4 + const AMOTION_EVENT_AXIS_GENERIC_5 + const AMOTION_EVENT_AXIS_GENERIC_6 + const AMOTION_EVENT_AXIS_GENERIC_7 + const AMOTION_EVENT_AXIS_GENERIC_8 + const AMOTION_EVENT_AXIS_GENERIC_9 + const AMOTION_EVENT_AXIS_GESTURE_PINCH_SCALE_FACTOR + const AMOTION_EVENT_AXIS_GESTURE_SCROLL_X_DISTANCE + const AMOTION_EVENT_AXIS_GESTURE_SCROLL_Y_DISTANCE + const AMOTION_EVENT_AXIS_GESTURE_SWIPE_FINGER_COUNT + const AMOTION_EVENT_AXIS_GESTURE_X_OFFSET + const AMOTION_EVENT_AXIS_GESTURE_Y_OFFSET + const AMOTION_EVENT_AXIS_HAT_X + const AMOTION_EVENT_AXIS_HAT_Y + const AMOTION_EVENT_AXIS_HSCROLL + const AMOTION_EVENT_AXIS_LTRIGGER + const AMOTION_EVENT_AXIS_ORIENTATION + const AMOTION_EVENT_AXIS_PRESSURE + const AMOTION_EVENT_AXIS_RELATIVE_X + const AMOTION_EVENT_AXIS_RELATIVE_Y + const AMOTION_EVENT_AXIS_RTRIGGER + const AMOTION_EVENT_AXIS_RUDDER + const AMOTION_EVENT_AXIS_RX + const AMOTION_EVENT_AXIS_RY + const AMOTION_EVENT_AXIS_RZ + const AMOTION_EVENT_AXIS_SCROLL + const AMOTION_EVENT_AXIS_SIZE + const AMOTION_EVENT_AXIS_THROTTLE + const AMOTION_EVENT_AXIS_TILT + const AMOTION_EVENT_AXIS_TOOL_MAJOR + const AMOTION_EVENT_AXIS_TOOL_MINOR + const AMOTION_EVENT_AXIS_TOUCH_MAJOR + const AMOTION_EVENT_AXIS_TOUCH_MINOR + const AMOTION_EVENT_AXIS_VSCROLL + const AMOTION_EVENT_AXIS_WHEEL + const AMOTION_EVENT_AXIS_X + const AMOTION_EVENT_AXIS_Y + const AMOTION_EVENT_AXIS_Z + const AMOTION_EVENT_BUTTON_BACK + const AMOTION_EVENT_BUTTON_FORWARD + const AMOTION_EVENT_BUTTON_PRIMARY + const AMOTION_EVENT_BUTTON_SECONDARY + const AMOTION_EVENT_BUTTON_STYLUS_PRIMARY + const AMOTION_EVENT_BUTTON_STYLUS_SECONDARY + const AMOTION_EVENT_BUTTON_TERTIARY + const AMOTION_EVENT_CLASSIFICATION_AMBIGUOUS_GESTURE + const AMOTION_EVENT_CLASSIFICATION_DEEP_PRESS + const AMOTION_EVENT_CLASSIFICATION_MULTI_FINGER_SWIPE + const AMOTION_EVENT_CLASSIFICATION_NONE + const AMOTION_EVENT_CLASSIFICATION_PINCH + const AMOTION_EVENT_CLASSIFICATION_TWO_FINGER_SWIPE + const AMOTION_EVENT_EDGE_FLAG_BOTTOM + const AMOTION_EVENT_EDGE_FLAG_LEFT + const AMOTION_EVENT_EDGE_FLAG_NONE + const AMOTION_EVENT_EDGE_FLAG_RIGHT + const AMOTION_EVENT_EDGE_FLAG_TOP + const AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED + const AMOTION_EVENT_MAXIMUM_VALID_AXIS_VALUE + const AMOTION_EVENT_TOOL_TYPE_ERASER + const AMOTION_EVENT_TOOL_TYPE_FINGER + const AMOTION_EVENT_TOOL_TYPE_MOUSE + const AMOTION_EVENT_TOOL_TYPE_PALM + const AMOTION_EVENT_TOOL_TYPE_STYLUS + const AMOTION_EVENT_TOOL_TYPE_UNKNOWN + func AInputEvent_getDeviceId(event *AInputEvent) int32 + func AInputEvent_getSource(event *AInputEvent) int32 + func AInputEvent_getType(event *AInputEvent) int32 + func AInputEvent_release(event *AInputEvent) + func AInputQueue_attachLooper(queue *AInputQueue, looper *ALooper, ident int32, ...) + func AInputQueue_detachLooper(queue *AInputQueue) + func AInputQueue_finishEvent(queue *AInputQueue, event *AInputEvent, handled int32) + func AInputQueue_getEvent(queue *AInputQueue, outEvent **AInputEvent) int32 + func AInputQueue_hasEvents(queue *AInputQueue) int32 + func AInputQueue_preDispatchEvent(queue *AInputQueue, event *AInputEvent) int32 + func AKeyEvent_getAction(key_event *AInputEvent) int32 + func AKeyEvent_getDownTime(key_event *AInputEvent) int64 + func AKeyEvent_getEventTime(key_event *AInputEvent) int64 + func AKeyEvent_getFlags(key_event *AInputEvent) int32 + func AKeyEvent_getKeyCode(key_event *AInputEvent) int32 + func AKeyEvent_getMetaState(key_event *AInputEvent) int32 + func AKeyEvent_getRepeatCount(key_event *AInputEvent) int32 + func AKeyEvent_getScanCode(key_event *AInputEvent) int32 + func AMotionEvent_getAction(motion_event *AInputEvent) int32 + func AMotionEvent_getActionButton(motion_event *AInputEvent) int32 + func AMotionEvent_getAxisValue(motion_event *AInputEvent, axis int32, pointer_index uint64) float32 + func AMotionEvent_getButtonState(motion_event *AInputEvent) int32 + func AMotionEvent_getClassification(motion_event *AInputEvent) int32 + func AMotionEvent_getDownTime(motion_event *AInputEvent) int64 + func AMotionEvent_getEdgeFlags(motion_event *AInputEvent) int32 + func AMotionEvent_getEventTime(motion_event *AInputEvent) int64 + func AMotionEvent_getFlags(motion_event *AInputEvent) int32 + func AMotionEvent_getHistoricalAxisValue(motion_event *AInputEvent, axis int32, pointer_index uint64, ...) float32 + func AMotionEvent_getHistoricalEventTime(motion_event *AInputEvent, history_index uint64) int64 + func AMotionEvent_getHistoricalOrientation(motion_event *AInputEvent, pointer_index uint64, history_index uint64) float32 + func AMotionEvent_getHistoricalPressure(motion_event *AInputEvent, pointer_index uint64, history_index uint64) float32 + func AMotionEvent_getHistoricalRawX(motion_event *AInputEvent, pointer_index uint64, history_index uint64) float32 + func AMotionEvent_getHistoricalRawY(motion_event *AInputEvent, pointer_index uint64, history_index uint64) float32 + func AMotionEvent_getHistoricalSize(motion_event *AInputEvent, pointer_index uint64, history_index uint64) float32 + func AMotionEvent_getHistoricalToolMajor(motion_event *AInputEvent, pointer_index uint64, history_index uint64) float32 + func AMotionEvent_getHistoricalToolMinor(motion_event *AInputEvent, pointer_index uint64, history_index uint64) float32 + func AMotionEvent_getHistoricalTouchMajor(motion_event *AInputEvent, pointer_index uint64, history_index uint64) float32 + func AMotionEvent_getHistoricalTouchMinor(motion_event *AInputEvent, pointer_index uint64, history_index uint64) float32 + func AMotionEvent_getHistoricalX(motion_event *AInputEvent, pointer_index uint64, history_index uint64) float32 + func AMotionEvent_getHistoricalY(motion_event *AInputEvent, pointer_index uint64, history_index uint64) float32 + func AMotionEvent_getHistorySize(motion_event *AInputEvent) uint64 + func AMotionEvent_getMetaState(motion_event *AInputEvent) int32 + func AMotionEvent_getOrientation(motion_event *AInputEvent, pointer_index uint64) float32 + func AMotionEvent_getPointerCount(motion_event *AInputEvent) uint64 + func AMotionEvent_getPointerId(motion_event *AInputEvent, pointer_index uint64) int32 + func AMotionEvent_getPressure(motion_event *AInputEvent, pointer_index uint64) float32 + func AMotionEvent_getRawX(motion_event *AInputEvent, pointer_index uint64) float32 + func AMotionEvent_getRawY(motion_event *AInputEvent, pointer_index uint64) float32 + func AMotionEvent_getSize(motion_event *AInputEvent, pointer_index uint64) float32 + func AMotionEvent_getToolMajor(motion_event *AInputEvent, pointer_index uint64) float32 + func AMotionEvent_getToolMinor(motion_event *AInputEvent, pointer_index uint64) float32 + func AMotionEvent_getToolType(motion_event *AInputEvent, pointer_index uint64) int32 + func AMotionEvent_getTouchMajor(motion_event *AInputEvent, pointer_index uint64) float32 + func AMotionEvent_getTouchMinor(motion_event *AInputEvent, pointer_index uint64) float32 + func AMotionEvent_getX(motion_event *AInputEvent, pointer_index uint64) float32 + func AMotionEvent_getXOffset(motion_event *AInputEvent) float32 + func AMotionEvent_getXPrecision(motion_event *AInputEvent) float32 + func AMotionEvent_getY(motion_event *AInputEvent, pointer_index uint64) float32 + func AMotionEvent_getYOffset(motion_event *AInputEvent) float32 + func AMotionEvent_getYPrecision(motion_event *AInputEvent) float32 + type AInputEvent C.AInputEvent + func AKeyEvent_fromJava(env *JNIEnv, keyEvent Jobject) *AInputEvent + func AMotionEvent_fromJava(env *JNIEnv, motionEvent Jobject) *AInputEvent + type AInputQueue C.AInputQueue + func AInputQueue_fromJava(env *JNIEnv, inputQueue Jobject) *AInputQueue + type ALooper C.ALooper + type ALooper_callbackFunc C.ALooper_callbackFunc + type CgoAllocMap struct + func (a *CgoAllocMap) Add(ptr unsafe.Pointer) + func (a *CgoAllocMap) Borrow(b *CgoAllocMap) + func (a *CgoAllocMap) Free() + func (a *CgoAllocMap) IsEmpty() bool + type JNIEnv C.JNIEnv + type Jobject C.jobject + func AInputEvent_toJava(env *JNIEnv, aInputEvent *AInputEvent) Jobject + type SliceHeader struct + Cap int + Data unsafe.Pointer + Len int