diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-04-18 22:29:50 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-04-19 00:18:33 +0300 |
commit | 1e7bf8de3b3bc4ac1d65d8b101d7ccedab24fcad (patch) | |
tree | 39f7de356bbb3c9c7bf68aba17855760d9f628e3 /vcl/ios | |
parent | Try to get the tinderbox build working (diff) | |
download | core-1e7bf8de3b3bc4ac1d65d8b101d7ccedab24fcad.tar.gz core-1e7bf8de3b3bc4ac1d65d8b101d7ccedab24fcad.zip |
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/ios')
-rw-r--r-- | vcl/ios/iosinst.cxx | 11 |
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(); |