Kaydet (Commit) 9702a749 authored tarafından Mihai Varga's avatar Mihai Varga Kaydeden (comit) Miklos Vajna

LOK: add mouse button type and modifier on android

Change-Id: Iab1dca8736eb208e652b5d5dfc0c87c8029679da
Reviewed-on: https://gerrit.libreoffice.org/19159Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
(cherry picked from commit 944bb51d)
üst d39c16a4
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <jni.h> #include <jni.h>
#include <sal/types.h> #include <sal/types.h>
#include <vcl/event.hxx>
#include <android/log.h> #include <android/log.h>
...@@ -279,7 +280,7 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_postMou ...@@ -279,7 +280,7 @@ extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_postMou
(JNIEnv* pEnv, jobject aObject, jint type, jint x, jint y, jint count) (JNIEnv* pEnv, jobject aObject, jint type, jint x, jint y, jint count)
{ {
LibreOfficeKitDocument* pDocument = getHandle<LibreOfficeKitDocument>(pEnv, aObject); LibreOfficeKitDocument* pDocument = getHandle<LibreOfficeKitDocument>(pEnv, aObject);
pDocument->pClass->postMouseEvent(pDocument, type, x, y, count); pDocument->pClass->postMouseEvent(pDocument, type, x, y, count, MOUSE_LEFT, 0);
} }
extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_postUnoCommand extern "C" SAL_JNI_EXPORT void JNICALL Java_org_libreoffice_kit_Document_postUnoCommand
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment