Versions in this module Expand all Collapse all v0 v0.0.3 Mar 16, 2026 Changes in this version + const AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT + type ALooper = capi.ALooper + type ALooper_callbackFunc = capi.ALooper_callbackFunc + type Error int32 + func (e Error) Error() string + type Event struct + func NewEventFromPointer(ptr unsafe.Pointer) *Event + func (h *Event) AKeyEvent_getDownTime() int64 + func (h *Event) AKeyEvent_getEventTime() int64 + func (h *Event) AKeyEvent_getFlags() error + func (h *Event) AKeyEvent_getMetaState() error + func (h *Event) AKeyEvent_getScanCode() error + func (h *Event) AMotionEvent_getActionButton() error + func (h *Event) AMotionEvent_getAxisValue(axis int32, pointer_index uint64) float32 + func (h *Event) AMotionEvent_getButtonState() error + func (h *Event) AMotionEvent_getClassification() error + func (h *Event) AMotionEvent_getDownTime() int64 + func (h *Event) AMotionEvent_getEdgeFlags() error + func (h *Event) AMotionEvent_getEventTime() int64 + func (h *Event) AMotionEvent_getFlags() error + func (h *Event) AMotionEvent_getHistoricalAxisValue(axis int32, pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistoricalEventTime(history_index uint64) int64 + func (h *Event) AMotionEvent_getHistoricalOrientation(pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistoricalPressure(pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistoricalRawX(pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistoricalRawY(pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistoricalSize(pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistoricalToolMajor(pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistoricalToolMinor(pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistoricalTouchMajor(pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistoricalTouchMinor(pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistoricalX(pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistoricalY(pointer_index uint64, history_index uint64) float32 + func (h *Event) AMotionEvent_getHistorySize() uint64 + func (h *Event) AMotionEvent_getMetaState() error + func (h *Event) AMotionEvent_getOrientation(pointer_index uint64) float32 + func (h *Event) AMotionEvent_getPointerID(pointer_index uint64) error + func (h *Event) AMotionEvent_getRawX(pointer_index uint64) float32 + func (h *Event) AMotionEvent_getRawY(pointer_index uint64) float32 + func (h *Event) AMotionEvent_getSize(pointer_index uint64) float32 + func (h *Event) AMotionEvent_getToolMajor(pointer_index uint64) float32 + func (h *Event) AMotionEvent_getToolMinor(pointer_index uint64) float32 + func (h *Event) AMotionEvent_getToolType(pointer_index uint64) error + func (h *Event) AMotionEvent_getTouchMajor(pointer_index uint64) float32 + func (h *Event) AMotionEvent_getTouchMinor(pointer_index uint64) float32 + func (h *Event) AMotionEvent_getXOffset() float32 + func (h *Event) AMotionEvent_getXPrecision() float32 + func (h *Event) AMotionEvent_getYOffset() float32 + func (h *Event) AMotionEvent_getYPrecision() float32 + func (h *Event) Close() error + func (h *Event) GetDeviceID() error + func (h *Event) KeyAction() int32 + func (h *Event) KeyCode() int32 + func (h *Event) MotionAction() int32 + func (h *Event) Pointer() unsafe.Pointer + func (h *Event) PointerCount() uint64 + func (h *Event) Pressure(pointer_index uint64) float32 + func (h *Event) RepeatCount() int32 + func (h *Event) Source() int32 + func (h *Event) Type() int32 + func (h *Event) X(pointer_index uint64) float32 + func (h *Event) Y(pointer_index uint64) float32 + type EventType int32 + const Capture + const Drag + const Focus + const Key + const Motion + const TouchMode + func (v EventType) String() string + type INPUT_KEYBOARD_TYPE int32 + const AINPUT_KEYBOARD_TYPE_ALPHABETIC + const AINPUT_KEYBOARD_TYPE_NONE + const AINPUT_KEYBOARD_TYPE_NON_ALPHABETIC + type INPUT_MOTION_RANGE int32 + 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 + type INPUT_SOURCE_CLASS int32 + 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 + type JNIEnv = capi.JNIEnv + type Jobject = capi.Jobject + type KEY_EVENT_FLAG int32 + 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 + type KEY_STATE int32 + const AKEY_STATE_DOWN + const AKEY_STATE_UNKNOWN + const AKEY_STATE_UP + const AKEY_STATE_VIRTUAL + type KeyAction int32 + const Down + const Multiple + const Up + func (v KeyAction) String() string + type META int32 + 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 + type MOTION_EVENT int32 + 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_MAXIMUM_VALID_AXIS_VALUE + type MOTION_EVENT_BUTTON int32 + 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 + type MOTION_EVENT_EDGE_FLAG int32 + 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 + type MOTION_EVENT_FLAG_WINDOW int32 + const AMOTION_EVENT_FLAG_WINDOW_IS_OBSCURED + type MOTION_EVENT_TOOL_TYPE int32 + 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 + type MotionAction int32 + const ActionButtonPress + const ActionButtonRelease + const ActionCancel + const ActionDown + const ActionHoverEnter + const ActionHoverExit + const ActionHoverMove + const ActionMask + const ActionMove + const ActionOutside + const ActionPointerDown + const ActionPointerIndexMask + const ActionPointerUp + const ActionScroll + const ActionUp + func (v MotionAction) String() string + type MotionClassification int32 + 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 + type Queue struct + func NewQueueFromPointer(ptr unsafe.Pointer) *Queue + func (h *Queue) DetachLooper() + func (h *Queue) FinishEvent(event *Event, handled int32) + func (h *Queue) GetEvent() *Event + func (h *Queue) HasEvents() error + func (h *Queue) Pointer() unsafe.Pointer + func (h *Queue) PreDispatchEvent(event *Event) bool + type Source int32 + const Any + const BluetoothStylus + const Dpad + const Gamepad + const Hdmi + const Joystick + const Keyboard + const Mouse + const MouseRelative + const RotaryEncoder + const Sensor + const Stylus + const TouchNavigation + const Touchpad + const Touchscreen + const Trackball + const Unknown + func (v Source) String() string