Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtAndroidInput Namespace Reference

Classes

class  GenericMotionEventListener
 
class  KeyEventListener
 

Enumerations

enum  AndroidMouseButton {
  BUTTON_PRIMARY = 0x00000001 , BUTTON_SECONDARY = 0x00000002 , BUTTON_TERTIARY = 0x00000004 , BUTTON_BACK = 0x00000008 ,
  BUTTON_FORWARD = 0x00000010 , BUTTON_STYLUS_PRIMARY = 0x00000020 , BUTTON_STYLUS_SECONDARY = 0x00000040
}
 

Functions

static jboolean dispatchGenericMotionEvent (JNIEnv *, jclass, jobject event)
 
static jboolean dispatchKeyEvent (JNIEnv *, jclass, jobject event)
 
void registerGenericMotionEventListener (QtAndroidInput::GenericMotionEventListener *listener)
 
void unregisterGenericMotionEventListener (QtAndroidInput::GenericMotionEventListener *listener)
 
void registerKeyEventListener (QtAndroidInput::KeyEventListener *listener)
 
void unregisterKeyEventListener (QtAndroidInput::KeyEventListener *listener)
 
QJniObject qtLayout ()
 
void updateSelection (int selStart, int selEnd, int candidatesStart, int candidatesEnd)
 
void showSoftwareKeyboard (int left, int top, int width, int height, int inputHints, int enterKeyType)
 
void resetSoftwareKeyboard ()
 
void hideSoftwareKeyboard ()
 
bool isSoftwareKeyboardVisible ()
 
QRect softwareKeyboardRect ()
 
int getSelectHandleWidth ()
 
void updateHandles (int mode, QPoint editMenuPos, uint32_t editButtons, QPoint cursor, QPoint anchor, bool rtl)
 
static Qt::MouseButtons toMouseButtons (jint j_buttons)
 
static void sendMouseButtonEvents (QWindow *topLevel, QPoint localPos, QPoint globalPos, jint mouseButtonState, QEvent::Type type)
 
static void mouseDown (JNIEnv *, jobject, jint winId, jint x, jint y, jint mouseButtonState)
 
static void mouseUp (JNIEnv *, jobject, jint winId, jint x, jint y, jint mouseButtonState)
 
static void mouseMove (JNIEnv *, jobject, jint winId, jint x, jint y)
 
static void mouseWheel (JNIEnv *, jobject, jint winId, jint x, jint y, jfloat hdelta, jfloat vdelta)
 
static void longPress (JNIEnv *, jobject, jint winId, jint x, jint y)
 
static void touchBegin (JNIEnv *, jobject, jint)
 
static void touchAdd (JNIEnv *, jobject, jint, jint id, jint action, jboolean, jint x, jint y, jfloat major, jfloat minor, jfloat rotation, jfloat pressure)
 
static QPointingDevicegetTouchDevice ()
 
static void touchEnd (JNIEnv *, jobject, jint winId, jint)
 
static void touchCancel (JNIEnv *, jobject, jint winId)
 
static bool isTabletEventSupported (JNIEnv *, jobject)
 
static void tabletEvent (JNIEnv *, jobject, jint winId, jint deviceId, jlong time, jint action, jint pointerType, jint buttonState, jfloat x, jfloat y, jfloat pressure)
 
static QKeyCombination mapAndroidKey (int key)
 
static Qt::KeyboardModifiers mapAndroidModifiers (jint modifiers)
 
static QString toString (jint unicode)
 
static void keyDown (JNIEnv *, jobject, jint key, jint unicode, jint modifier, jboolean autoRepeat)
 
static void keyUp (JNIEnv *, jobject, jint key, jint unicode, jint modifier, jboolean autoRepeat)
 
static void keyboardVisibilityChanged (JNIEnv *, jobject, jboolean visibility)
 
static void keyboardGeometryChanged (JNIEnv *, jobject, jint x, jint y, jint w, jint h)
 
static void handleLocationChanged (JNIEnv *, jobject, int id, int x, int y)
 
bool registerNatives (QJniEnvironment &env)
 

Variables

static bool m_ignoreMouseEvents = false
 
static Qt::MouseButtons m_buttons = Qt::NoButton
 
static QRect m_softwareKeyboardRect
 
static QList< QWindowSystemInterface::TouchPointm_touchPoints
 
static QPointer< QWindowm_mouseGrabber
 
static const JNINativeMethod methods []
 

Enumeration Type Documentation

◆ AndroidMouseButton

Enumerator
BUTTON_PRIMARY 
BUTTON_SECONDARY 
BUTTON_TERTIARY 
BUTTON_BACK 
BUTTON_FORWARD 
BUTTON_STYLUS_PRIMARY 
BUTTON_STYLUS_SECONDARY 

Definition at line 168 of file androidjniinput.cpp.

Function Documentation

◆ dispatchGenericMotionEvent()

static jboolean QtAndroidInput::dispatchGenericMotionEvent ( JNIEnv * ,
jclass ,
jobject event )
static

Definition at line 50 of file androidjniinput.cpp.

References listeners, mutex, and ret.

◆ dispatchKeyEvent()

static jboolean QtAndroidInput::dispatchKeyEvent ( JNIEnv * ,
jclass ,
jobject event )
static

Definition at line 68 of file androidjniinput.cpp.

References listeners, mutex, and ret.

◆ getSelectHandleWidth()

int QtAndroidInput::getSelectHandleWidth ( )

Definition at line 152 of file androidjniinput.cpp.

References QtAndroid::backendRegister(), and getSelectHandleWidth().

Referenced by getSelectHandleWidth(), and QAndroidInputContext::updateSelectionHandles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTouchDevice()

static QPointingDevice * QtAndroidInput::getTouchDevice ( )
static

Definition at line 368 of file androidjniinput.cpp.

References QtAndroid::androidPlatformIntegration(), QInputDevice::Area, QPointingDevice::Finger, getTouchDevice(), QInputDevice::NormalizedPosition, QInputDevice::Position, QInputDevice::Pressure, QWindowSystemInterface::registerInputDevice(), QAndroidPlatformIntegration::setTouchDevice(), QAndroidPlatformIntegration::touchDevice(), and QInputDevice::TouchScreen.

Referenced by getTouchDevice(), touchCancel(), and touchEnd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleLocationChanged()

static void QtAndroidInput::handleLocationChanged ( JNIEnv * ,
jobject ,
int id,
int x,
int y )
static

Definition at line 953 of file androidjniinput.cpp.

References QAndroidInputContext::androidInputContext(), Qt::BlockingQueuedConnection, handleLocationChanged(), QMetaObject::invokeMethod(), Q_ARG, qCDebug, and qGuiApp.

Referenced by handleLocationChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hideSoftwareKeyboard()

void QtAndroidInput::hideSoftwareKeyboard ( )

Definition at line 133 of file androidjniinput.cpp.

References QtAndroid::backendRegister(), hideSoftwareKeyboard(), and qCDebug.

Referenced by QAndroidInputContext::hideInputPanel(), hideSoftwareKeyboard(), and QAndroidInputContext::reset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isSoftwareKeyboardVisible()

bool QtAndroidInput::isSoftwareKeyboardVisible ( )

Definition at line 140 of file androidjniinput.cpp.

References QtAndroid::backendRegister(), and isSoftwareKeyboardVisible().

Referenced by QAndroidInputContext::isInputPanelVisible(), and isSoftwareKeyboardVisible().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isTabletEventSupported()

static bool QtAndroidInput::isTabletEventSupported ( JNIEnv * ,
jobject  )
static

Definition at line 423 of file androidjniinput.cpp.

References isTabletEventSupported().

Referenced by isTabletEventSupported().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ keyboardGeometryChanged()

static void QtAndroidInput::keyboardGeometryChanged ( JNIEnv * ,
jobject ,
jint x,
jint y,
jint w,
jint h )
static

Definition at line 940 of file androidjniinput.cpp.

References QAndroidInputContext::androidInputContext(), QPlatformInputContext::emitKeyboardRectChanged(), keyboardGeometryChanged(), m_softwareKeyboardRect, qCDebug, and qGuiApp.

Referenced by keyboardGeometryChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ keyboardVisibilityChanged()

static void QtAndroidInput::keyboardVisibilityChanged ( JNIEnv * ,
jobject ,
jboolean visibility )
static

Definition at line 924 of file androidjniinput.cpp.

References QAndroidInputContext::androidInputContext(), QPlatformInputContext::emitInputPanelVisibleChanged(), QPlatformInputContext::emitKeyboardRectChanged(), QMetaObject::invokeMethod(), keyboardVisibilityChanged(), m_softwareKeyboardRect, qCDebug, qGuiApp, and Qt::QueuedConnection.

Referenced by keyboardVisibilityChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ keyDown()

static void QtAndroidInput::keyDown ( JNIEnv * ,
jobject ,
jint key,
jint unicode,
jint modifier,
jboolean autoRepeat )
static

Definition at line 904 of file androidjniinput.cpp.

References QWindowSystemInterface::handleKeyEvent(), keyDown(), QEvent::KeyPress, mapAndroidKey(), mapAndroidModifiers(), and toString().

Referenced by keyDown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ keyUp()

static void QtAndroidInput::keyUp ( JNIEnv * ,
jobject ,
jint key,
jint unicode,
jint modifier,
jboolean autoRepeat )
static

Definition at line 914 of file androidjniinput.cpp.

References QWindowSystemInterface::handleKeyEvent(), QEvent::KeyRelease, keyUp(), mapAndroidKey(), mapAndroidModifiers(), and toString().

Referenced by keyUp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ longPress()

static void QtAndroidInput::longPress ( JNIEnv * ,
jobject ,
jint winId,
jint x,
jint y )
static

Definition at line 297 of file androidjniinput.cpp.

References QAndroidInputContext::androidInputContext(), QWindowSystemInterface::handleMouseEvent(), QMetaObject::invokeMethod(), longPress(), m_ignoreMouseEvents, m_mouseGrabber, QEvent::MouseButtonPress, QEvent::MouseButtonRelease, Qt::NoButton, Q_ARG, qEnvironmentVariableIntValue(), qGuiApp, Qt::RightButton, window(), and QtAndroid::windowFromId().

Referenced by longPress().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mapAndroidKey()

static QKeyCombination QtAndroidInput::mapAndroidKey ( int key)
static

Definition at line 479 of file androidjniinput.cpp.

References QKeyCombination::fromCombined(), Qt::Key_0, Qt::Key_A, Qt::Key_AddFavorite, Qt::Key_Alt, Qt::Key_Apostrophe, Qt::Key_Asterisk, Qt::Key_At, Qt::Key_AudioCycleTrack, Qt::Key_AudioForward, Qt::Key_AudioRewind, Qt::Key_Back, Qt::Key_Backslash, Qt::Key_Backspace, Qt::Key_Blue, Qt::Key_BracketLeft, Qt::Key_BracketRight, Qt::Key_Calculator, Qt::Key_Calendar, Qt::Key_Call, Qt::Key_Camera, Qt::Key_CameraFocus, Qt::Key_CapsLock, Qt::Key_ChannelDown, Qt::Key_ChannelUp, Qt::Key_Clear, Qt::Key_Comma, Qt::Key_Control, Qt::Key_Delete, Qt::Key_Down, Qt::Key_Eject, Qt::Key_End, Qt::Key_Enter, Qt::Key_Equal, Qt::Key_Escape, Qt::Key_Explorer, Qt::Key_F1, Qt::Key_Forward, Qt::Key_Green, Qt::Key_Guide, Qt::Key_Hangup, Qt::Key_Home, Qt::Key_Info, Qt::Key_Insert, Qt::Key_KeyboardBrightnessDown, Qt::Key_KeyboardBrightnessUp, Qt::Key_LaunchMail, Qt::Key_Left, Qt::Key_MediaNext, Qt::Key_MediaPause, Qt::Key_MediaPlay, Qt::Key_MediaPrevious, Qt::Key_MediaRecord, Qt::Key_MediaStop, Qt::Key_MediaTogglePlayPause, Qt::Key_Menu, Qt::Key_Meta, Qt::Key_MicMute, Qt::Key_Minus, Qt::Key_Music, Qt::Key_NumberSign, Qt::Key_NumLock, Qt::Key_PageDown, Qt::Key_PageUp, Qt::Key_ParenLeft, Qt::Key_ParenRight, Qt::Key_Pause, Qt::Key_Period, Qt::Key_Plus, Qt::Key_PowerOff, Qt::Key_Print, Qt::Key_QuoteLeft, Qt::Key_Red, Qt::Key_Return, Qt::Key_Right, Qt::Key_ScrollLock, Qt::Key_Search, Qt::Key_Semicolon, Qt::Key_Settings, Qt::Key_Shift, Qt::Key_Slash, Qt::Key_Space, Qt::Key_Subtitle, Qt::Key_Tab, Qt::Key_unknown, Qt::Key_Up, Qt::Key_VolumeDown, Qt::Key_VolumeMute, Qt::Key_VolumeUp, Qt::Key_Yellow, Qt::Key_ZoomIn, Qt::Key_ZoomOut, Qt::KeypadModifier, mapAndroidKey(), and qWarning.

Referenced by keyDown(), keyUp(), and mapAndroidKey().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mapAndroidModifiers()

static Qt::KeyboardModifiers QtAndroidInput::mapAndroidModifiers ( jint modifiers)
static

Definition at line 879 of file androidjniinput.cpp.

References Qt::AltModifier, Qt::ControlModifier, mapAndroidModifiers(), Qt::MetaModifier, and Qt::ShiftModifier.

Referenced by keyDown(), keyUp(), and mapAndroidModifiers().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mouseDown()

static void QtAndroidInput::mouseDown ( JNIEnv * ,
jobject ,
jint winId,
jint x,
jint y,
jint mouseButtonState )
static

Definition at line 232 of file androidjniinput.cpp.

References m_ignoreMouseEvents, m_mouseGrabber, QEvent::MouseButtonPress, mouseDown(), sendMouseButtonEvents(), window(), and QtAndroid::windowFromId().

Referenced by mouseDown().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mouseMove()

static void QtAndroidInput::mouseMove ( JNIEnv * ,
jobject ,
jint winId,
jint x,
jint y )
static

Definition at line 260 of file androidjniinput.cpp.

References QWindowSystemInterface::handleMouseEvent(), Qt::LeftButton, m_ignoreMouseEvents, m_mouseGrabber, QEvent::MouseMove, mouseMove(), Qt::NoButton, window(), and QtAndroid::windowFromId().

Referenced by mouseMove().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mouseUp()

static void QtAndroidInput::mouseUp ( JNIEnv * ,
jobject ,
jint winId,
jint x,
jint y,
jint mouseButtonState )
static

Definition at line 245 of file androidjniinput.cpp.

References m_ignoreMouseEvents, m_mouseGrabber, QEvent::MouseButtonRelease, mouseUp(), sendMouseButtonEvents(), window(), and QtAndroid::windowFromId().

Referenced by mouseUp().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mouseWheel()

static void QtAndroidInput::mouseWheel ( JNIEnv * ,
jobject ,
jint winId,
jint x,
jint y,
jfloat hdelta,
jfloat vdelta )
static

Definition at line 277 of file androidjniinput.cpp.

References QWindowSystemInterface::handleWheelEvent(), m_ignoreMouseEvents, m_mouseGrabber, mouseWheel(), window(), and QtAndroid::windowFromId().

Referenced by mouseWheel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qtLayout()

QJniObject QtAndroidInput::qtLayout ( )

Definition at line 101 of file androidjniinput.cpp.

References QtAndroid::backendRegister(), and qtLayout().

Referenced by qtLayout(), showSoftwareKeyboard(), and updateHandles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerGenericMotionEventListener()

void QtAndroidInput::registerGenericMotionEventListener ( QtAndroidInput::GenericMotionEventListener * listener)

Definition at line 77 of file androidjniinput.cpp.

References mutex, and registerGenericMotionEventListener().

Referenced by registerGenericMotionEventListener().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerKeyEventListener()

void QtAndroidInput::registerKeyEventListener ( QtAndroidInput::KeyEventListener * listener)

Definition at line 89 of file androidjniinput.cpp.

References mutex, and registerKeyEventListener().

Referenced by registerKeyEventListener().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerNatives()

bool QtAndroidInput::registerNatives ( QJniEnvironment & env)

Definition at line 985 of file androidjniinput.cpp.

References methods.

Referenced by JNI_OnLoad().

+ Here is the caller graph for this function:

◆ resetSoftwareKeyboard()

void QtAndroidInput::resetSoftwareKeyboard ( )

Definition at line 126 of file androidjniinput.cpp.

References QtAndroid::backendRegister(), qCDebug, and resetSoftwareKeyboard().

Referenced by QAndroidInputContext::reset(), and resetSoftwareKeyboard().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendMouseButtonEvents()

static void QtAndroidInput::sendMouseButtonEvents ( QWindow * topLevel,
QPoint localPos,
QPoint globalPos,
jint mouseButtonState,
QEvent::Type type )
static

Definition at line 212 of file androidjniinput.cpp.

References button, QWindowSystemInterface::handleMouseEvent(), Qt::NoButton, sendMouseButtonEvents(), and toMouseButtons().

Referenced by mouseDown(), mouseUp(), and sendMouseButtonEvents().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showSoftwareKeyboard()

void QtAndroidInput::showSoftwareKeyboard ( int left,
int top,
int width,
int height,
int inputHints,
int enterKeyType )

Definition at line 116 of file androidjniinput.cpp.

References QtAndroidPrivate::activity(), QtAndroid::backendRegister(), qCDebug, qtLayout(), and showSoftwareKeyboard().

Referenced by QAndroidInputContext::showInputPanel(), and showSoftwareKeyboard().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ softwareKeyboardRect()

QRect QtAndroidInput::softwareKeyboardRect ( )

Definition at line 147 of file androidjniinput.cpp.

References m_softwareKeyboardRect, and softwareKeyboardRect().

Referenced by QAndroidInputContext::keyboardRect(), and softwareKeyboardRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tabletEvent()

static void QtAndroidInput::tabletEvent ( JNIEnv * ,
jobject ,
jint winId,
jint deviceId,
jlong time,
jint action,
jint pointerType,
jint buttonState,
jfloat x,
jfloat y,
jfloat pressure )
static

Definition at line 432 of file androidjniinput.cpp.

References QWindowSystemInterface::handleTabletEvent(), Qt::LeftButton, Qt::NoButton, Qt::NoModifier, pointerType(), qCDebug, QInputDevice::Stylus, tabletEvent(), time, window(), and QtAndroid::windowFromId().

Referenced by tabletEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toMouseButtons()

static Qt::MouseButtons QtAndroidInput::toMouseButtons ( jint j_buttons)
static

Definition at line 179 of file androidjniinput.cpp.

References Qt::BackButton, BUTTON_BACK, BUTTON_FORWARD, BUTTON_PRIMARY, BUTTON_SECONDARY, BUTTON_STYLUS_PRIMARY, BUTTON_STYLUS_SECONDARY, BUTTON_TERTIARY, Qt::ForwardButton, Qt::LeftButton, Qt::MiddleButton, Qt::NoButton, Q_UNLIKELY, qWarning, and Qt::RightButton.

Referenced by sendMouseButtonEvents().

+ Here is the caller graph for this function:

◆ toString()

static QString QtAndroidInput::toString ( jint unicode)
inlinestatic

Definition at line 899 of file androidjniinput.cpp.

◆ touchAdd()

static void QtAndroidInput::touchAdd ( JNIEnv * ,
jobject ,
jint ,
jint id,
jint action,
jboolean ,
jint x,
jint y,
jfloat major,
jfloat minor,
jfloat rotation,
jfloat pressure )
static

Definition at line 329 of file androidjniinput.cpp.

References QAndroidInputContext::androidInputContext(), QWindowSystemInterface::TouchPoint::area, QtAndroid::availableHeightPixels(), QtAndroid::availableWidthPixels(), QWindowSystemInterface::TouchPoint::id, QMetaObject::invokeMethod(), m_touchPoints, QWindowSystemInterface::TouchPoint::normalPosition, QEventPoint::Pressed, QWindowSystemInterface::TouchPoint::pressure, Q_ARG, qGuiApp, qRadiansToDegrees(), QEventPoint::Released, QWindowSystemInterface::TouchPoint::rotation, QWindowSystemInterface::TouchPoint::state, state, QEventPoint::Stationary, touchAdd(), and QEventPoint::Updated.

Referenced by touchAdd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ touchBegin()

static void QtAndroidInput::touchBegin ( JNIEnv * ,
jobject ,
jint  )
static

Definition at line 324 of file androidjniinput.cpp.

References m_touchPoints, and touchBegin().

Referenced by touchBegin().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ touchCancel()

static void QtAndroidInput::touchCancel ( JNIEnv * ,
jobject ,
jint winId )
static

Definition at line 407 of file androidjniinput.cpp.

References getTouchDevice(), QWindowSystemInterface::handleTouchCancelEvent(), lock, m_touchPoints, QtAndroid::platformInterfaceMutex(), touchCancel(), window(), and QtAndroid::windowFromId().

Referenced by touchCancel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ touchEnd()

static void QtAndroidInput::touchEnd ( JNIEnv * ,
jobject ,
jint winId,
jint  )
static

Definition at line 391 of file androidjniinput.cpp.

References getTouchDevice(), QWindowSystemInterface::handleTouchEvent(), lock, m_touchPoints, QtAndroid::platformInterfaceMutex(), touchEnd(), window(), and QtAndroid::windowFromId().

Referenced by touchEnd().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterGenericMotionEventListener()

void QtAndroidInput::unregisterGenericMotionEventListener ( QtAndroidInput::GenericMotionEventListener * listener)

Definition at line 83 of file androidjniinput.cpp.

References mutex, and unregisterGenericMotionEventListener().

Referenced by unregisterGenericMotionEventListener().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ unregisterKeyEventListener()

void QtAndroidInput::unregisterKeyEventListener ( QtAndroidInput::KeyEventListener * listener)

Definition at line 95 of file androidjniinput.cpp.

References mutex, and unregisterKeyEventListener().

Referenced by unregisterKeyEventListener().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateHandles()

void QtAndroidInput::updateHandles ( int mode,
QPoint editMenuPos,
uint32_t editButtons,
QPoint cursor,
QPoint anchor,
bool rtl )

Definition at line 158 of file androidjniinput.cpp.

References QtAndroidPrivate::activity(), QtAndroid::backendRegister(), cursor, qtLayout(), updateHandles(), QPoint::x(), and QPoint::y().

Referenced by updateHandles(), and QAndroidInputContext::updateSelectionHandles().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateSelection()

void QtAndroidInput::updateSelection ( int selStart,
int selEnd,
int candidatesStart,
int candidatesEnd )

Definition at line 108 of file androidjniinput.cpp.

References QtAndroid::backendRegister(), qCDebug, and updateSelection().

Referenced by QAndroidInputContext::updateCursorPosition(), and updateSelection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ m_buttons

Qt::MouseButtons QtAndroidInput::m_buttons = Qt::NoButton
static

Definition at line 33 of file androidjniinput.cpp.

◆ m_ignoreMouseEvents

bool QtAndroidInput::m_ignoreMouseEvents = false
static

Definition at line 32 of file androidjniinput.cpp.

Referenced by longPress(), mouseDown(), mouseMove(), mouseUp(), and mouseWheel().

◆ m_mouseGrabber

QPointer<QWindow> QtAndroidInput::m_mouseGrabber
static

Definition at line 39 of file androidjniinput.cpp.

Referenced by longPress(), mouseDown(), mouseMove(), mouseUp(), and mouseWheel().

◆ m_softwareKeyboardRect

QRect QtAndroidInput::m_softwareKeyboardRect
static

◆ m_touchPoints

QList<QWindowSystemInterface::TouchPoint> QtAndroidInput::m_touchPoints
static

Definition at line 37 of file androidjniinput.cpp.

Referenced by touchAdd(), touchBegin(), touchCancel(), and touchEnd().

◆ methods

const JNINativeMethod QtAndroidInput::methods[]
static
Initial value:
= {
{"touchBegin","(I)V",(void*)touchBegin},
{"touchAdd","(IIIZIIFFFF)V",(void*)touchAdd},
{"touchEnd","(II)V",(void*)touchEnd},
{"touchCancel", "(I)V", (void *)touchCancel},
{"mouseDown", "(IIII)V", (void *)mouseDown},
{"mouseUp", "(IIII)V", (void *)mouseUp},
{"mouseMove", "(III)V", (void *)mouseMove},
{"mouseWheel", "(IIIFF)V", (void *)mouseWheel},
{"longPress", "(III)V", (void *)longPress},
{"isTabletEventSupported", "()Z", (void *)isTabletEventSupported},
{"tabletEvent", "(IIJIIIFFF)V", (void *)tabletEvent},
{"keyDown", "(IIIZ)V", (void *)keyDown},
{"keyUp", "(IIIZ)V", (void *)keyUp},
{"keyboardVisibilityChanged", "(Z)V", (void *)keyboardVisibilityChanged},
{"keyboardGeometryChanged", "(IIII)V", (void *)keyboardGeometryChanged},
{"handleLocationChanged", "(III)V", (void *)handleLocationChanged},
{"dispatchGenericMotionEvent", "(Landroid/view/MotionEvent;)Z", reinterpret_cast<void *>(dispatchGenericMotionEvent)},
{"dispatchKeyEvent", "(Landroid/view/KeyEvent;)Z", reinterpret_cast<void *>(dispatchKeyEvent)},
}
static jboolean dispatchKeyEvent(JNIEnv *, jclass, jobject event)
static jboolean dispatchGenericMotionEvent(JNIEnv *, jclass, jobject event)

Definition at line 964 of file androidjniinput.cpp.