author | aquadran <aquadran> | 2005-12-29 21:17:39 (UTC) |
---|---|---|
committer | aquadran <aquadran> | 2005-12-29 21:17:39 (UTC) |
commit | d795d596af30d2856544b960d37e779659c324a6 (patch) (side-by-side diff) | |
tree | 651bdc5c29889c9a877178803aab38cba52ffa22 /libopie2/opiecore/device/odevice_ipaq.cpp | |
parent | b12409a7785ddc05fa245de42bb19f3d15fde5d8 (diff) | |
download | opie-d795d596af30d2856544b960d37e779659c324a6.zip opie-d795d596af30d2856544b960d37e779659c324a6.tar.gz opie-d795d596af30d2856544b960d37e779659c324a6.tar.bz2 |
changed power button mappings for h1915 and asus mypal 716
Diffstat (limited to 'libopie2/opiecore/device/odevice_ipaq.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_ipaq.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp index 5272a3c..a221e23 100644 --- a/libopie2/opiecore/device/odevice_ipaq.cpp +++ b/libopie2/opiecore/device/odevice_ipaq.cpp @@ -300,24 +300,28 @@ bool iPAQ::filter ( int /*unicode*/, int keycode, int modifiers, bool isPress, b } // Rotate the cursor keys by 270 // keycode - Key_Left = position of the button starting from left clockwise // add the rotation to it and modolo. No we've the original offset // add the offset to the Key_Left key if (( d->m_model == Model_iPAQ_H5xxx ) || ( d->m_model == Model_iPAQ_H191x ) || ( d->m_model == Model_iPAQ_H1940 )) newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4; break; } + // map Power Button short/long press to F6 for h191x + case Key_F6: + if ( d->m_model != Model_iPAQ_H191x ) + break; // map Power Button short/long press to F34/F35 case Key_SysReq: { if ( isPress ) { if ( m_power_timer ) killTimer ( m_power_timer ); m_power_timer = startTimer ( 500 ); } else if ( m_power_timer ) { killTimer ( m_power_timer ); m_power_timer = 0; QWSServer::sendKeyEvent ( -1, HardKey_Suspend, 0, true, false ); QWSServer::sendKeyEvent ( -1, HardKey_Suspend, 0, false, false ); |