[PATCH] h2200 buttons kernel remapping
Giorgio Padrin <[email protected]>
| Newsgroups | gmane.comp.handhelds.opie.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, This is a patch for Opie to follow the kernel remapping of the 4 h2200 special buttons all into F9-F12 set. Giorgio _______________________________________________ http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex Opie-devel mailing list [email protected] https://handhelds.org/mailman/listinfo/opie-devel
h2200-remap_buttons.patch
(text/x-diff, 1.4 KB)
Index: opie/libopie2/opiecore/device/odevice_ipaq.cpp
===================================================================
--- opie.orig/libopie2/opiecore/device/odevice_ipaq.cpp 2006-08-11 15:55:13.000000000 +0200
+++ opie/libopie2/opiecore/device/odevice_ipaq.cpp 2006-08-11 16:05:14.000000000 +0200
@@ -128,23 +128,19 @@
"sound", "raise()" },
//h2200 has different button mapping
- { Model_iPAQ_H22xx,
- Qt::Key_NumLock, QT_TRANSLATE_NOOP("Button", "Mail Button"),
+ { Model_iPAQ_H22xx | Model_iPAQ_HX4700,
+ Qt::Key_F11, QT_TRANSLATE_NOOP("Button", "Mail Button"),
"devicebuttons/ipaq_mail",
"opiemail", "raise()",
"opiemail", "newMail()" },
{ Model_iPAQ_H22xx,
- Qt::Key_ScrollLock, QT_TRANSLATE_NOOP("Button", "Menu Button"),
- "devicebuttons/ipaq_menu",
- "QPE/TaskBar", "toggleMenu()",
- "QPE/TaskBar", "toggleStartMenu()" },
+ Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Home Button"),
+ "devicebuttons/ipaq_home",
+ "QPE/Launcher", "home()",
+ "buttonsettings", "raise()" },
+
// and hx4700 has different button mapping still
{ Model_iPAQ_HX4700,
- Qt::Key_F11, QT_TRANSLATE_NOOP("Button", "Mail Button"),
- "devicebuttons/ipaq_mail",
- "opiemail", "raise()",
- "opiemail", "newMail()" },
- { Model_iPAQ_HX4700,
Qt::Key_F12, QT_TRANSLATE_NOOP("Button", "Record Button"),
"devicebuttons/ipaq_record",
"QPE/VMemo", "toggleRecord()",