Hardware Buttons support in h22xx - proposed patch
"Marcos \"Japa\" Umino" <[email protected]>
| Newsgroups | gmane.comp.handhelds.opie.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello This is a patch to add support for hardware buttons for h22xx ipaq in OPIE. If any developer could please review and submit it for me, I'd be most grateful. Familiar needs it, h22xx opie familiar release 0.8.4-rc2.3 has no official hardware button support, nor any known workaround. Adding support in opie would be the first step to build proper images. Latest addition was hx19xx, h22xx uses yet another mapping. 67 - Calendar - F7 68 - Contacts - F8 69 - eMail - F9 70 - iTask - F10 The proposed patch simply adds entries mapping these, i'm not sure this is all that is needed to add support, but anyway, I'm sure this will be needed. This has been diff'ed against Opie HEAD branch. Japa _______________________________________________ http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex Opie-devel mailing list [email protected] https://handhelds.org/mailman/listinfo/opie-devel
patch-h22xx-buttons.patch
(text/x-patch, 1.2 KB)
Index: odevice_ipaq.cpp
===================================================================
RCS file: /cvs/opie/libopie2/opiecore/device/odevice_ipaq.cpp,v
retrieving revision 1.25
diff -a -u -r1.25 odevice_ipaq.cpp
--- odevice_ipaq.cpp 9 Jun 2006 08:27:01 -0000 1.25
+++ odevice_ipaq.cpp 25 Jul 2006 16:23:02 -0000
@@ -127,6 +127,28 @@
"QPE/VMemo", "toggleRecord()",
"sound", "raise()" },
+ //h2200 has different button mapping
+ { Model_iPAQ_H22xx,
+ Qt::Key_F7, QT_TRANSLATE_NOOP("Button", "Calendar Button"),
+ "devicebuttons/ipaq_calendar",
+ "datebook", "nextView()",
+ "today", "raise()" },
+ { Model_iPAQ_H22xx,
+ Qt::Key_F8, QT_TRANSLATE_NOOP("Button", "Contacts Button"),
+ "devicebuttons/ipaq_contact",
+ "addressbook", "raise()",
+ "addressbook", "beamBusinessCard()" },
+ { Model_iPAQ_H22xx,
+ Qt::Key_F9, QT_TRANSLATE_NOOP("Button", "Mail Button"),
+ "devicebuttons/ipaq_mail",
+ "opiemail", "raise()",
+ "opiemail", "newMail()" },
+ { Model_iPAQ_H22xx,
+ Qt::Key_F10, QT_TRANSLATE_NOOP("Button", "Menu Button"),
+ "devicebuttons/ipaq_menu",
+ "QPE/TaskBar", "toggleMenu()",
+ "QPE/TaskBar", "toggleStartMenu()" },
+
};
void iPAQ::init(const QString& model)