summaryrefslogtreecommitdiff
path: root/packages/libopie/libopie2
diff options
context:
space:
mode:
authorPaul Eggleton <bluelightning@bluelightning.org>2008-08-11 22:22:32 +0000
committerPaul Eggleton <bluelightning@bluelightning.org>2008-08-11 22:22:32 +0000
commit32cc1d9b121cd57d9fc9278832676e1ea8899b6a (patch)
tree1c37ac62950a046943eb4dc959e624f947e0780a /packages/libopie/libopie2
parent431697c77724dc806279f6d5806cbd07d0d943bc (diff)
libopie2: add fix for cursor key rotation on spitz
Diffstat (limited to 'packages/libopie/libopie2')
-rw-r--r--packages/libopie/libopie2/spitz_rotate_fix.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/libopie/libopie2/spitz_rotate_fix.patch b/packages/libopie/libopie2/spitz_rotate_fix.patch
new file mode 100644
index 0000000000..428ec0d4cf
--- /dev/null
+++ b/packages/libopie/libopie2/spitz_rotate_fix.patch
@@ -0,0 +1,23 @@
+--- libopie2/opiecore/device/odevice_zaurus.cpp 30 Jul 2007 19:10:52 -0000 1.53
++++ libopie2/opiecore/device/odevice_zaurus.cpp 8 Aug 2008 23:15:15 -0000
+@@ -760,9 +760,18 @@
+ case Key_Up :
+ case Key_Down :
+ {
+- if (rotation()==Rot90) {
+- newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4;
++ if (d->m_model == Model_Zaurus_SLC3000) {
++ // This ensures that the cursor keys work correctly and that the
++ // side wheel works as expected when the screen is flipped over
++ if (rotation() == Rot270)
++ newkeycode = Key_Left + ( keycode - Key_Left + 1 ) % 4;
+ }
++ else {
++ if (rotation()==Rot90)
++ newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4;
++ }
++ break;
++
+ }
+ break;
+