summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-04-18 22:29:50 +0300
committerTor Lillqvist <tml@iki.fi>2013-04-19 00:18:33 +0300
commit1e7bf8de3b3bc4ac1d65d8b101d7ccedab24fcad (patch)
tree39f7de356bbb3c9c7bf68aba17855760d9f628e3 /vcl
parent7711a60a64cc02e2a733b73be21525370d3840b2 (diff)
Add pan gesture handling
I get exactly the same kind of artefacts as in the Android app, which I guess is good as it is at least consistent, as the implementation at the LO layer is identical... Change-Id: Icf0690fd2c48a133cb66de2ab7977b7088d2199e
Diffstat (limited to 'vcl')
-rw-r--r--vcl/ios/iosinst.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/ios/iosinst.cxx b/vcl/ios/iosinst.cxx
index 39410fcb7fb8..7ba2656f7359 100644
--- a/vcl/ios/iosinst.cxx
+++ b/vcl/ios/iosinst.cxx
@@ -403,6 +403,17 @@ void lo_tap(int x, int y)
}
extern "C"
+void lo_pan(int x, int y)
+{
+ SalFrame *pFocus = IosSalInstance::getInstance()->getFocusFrame();
+ if (pFocus) {
+ SAL_INFO( "vcl.ios", "scroll: " << "(" << x << "," << y << ")" );
+ ScrollEvent aEvent( x, y );
+ Application::PostScrollEvent(VCLEVENT_WINDOW_SCROLL, pFocus->GetWindow(), &aEvent);
+ }
+}
+
+extern "C"
void lo_keyboard_input(int c)
{
SalFrame *pFocus = IosSalInstance::getInstance()->getFocusFrame();