Re: [PATCH] h2200 buttons kernel remapping

Dmitriy Korovkin <[email protected]>
Newsgroups gmane.comp.handhelds.opie.devel
Message-ID <[email protected]>
Hi guys,
Gorgio has submitted the patch that changes h2200 key settings. Will someone who has h2200 check it and say if it works, so I can integrate it ti CVS tree or not.
Thanks in advance,

Dmitriy



Giorgio Padrin wrote:

>Hi,
>
>This is a patch for Opie to follow the kernel remapping of the 4 h2200 special 
>buttons all into F9-F12 set.
>
>Giorgio   
>  
>
>------------------------------------------------------------------------
>
>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()",
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>
>http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex
>
>Opie-devel mailing list
>[email protected]
>https://handhelds.org/mailman/listinfo/opie-devel
>  
>

-- 
Dmitriy

_______________________________________________

http://opie.handhelds.org/cgi-bin/moin.cgi/DeveloperWikiIndex

Opie-devel mailing list
[email protected]
https://handhelds.org/mailman/listinfo/opie-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.