author | sandman <sandman> | 2002-06-16 01:31:36 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-06-16 01:31:36 (UTC) |
commit | ac7ddc479efedd5cbfb0f4a8a3e4fa304abfaa91 (patch) (unidiff) | |
tree | 9f21f116a4b7057c6a2f1bae45a0dfedc5bcae6b /core/launcher/desktop.cpp | |
parent | eb414eb5d393f0f727e833fc8901aef096558997 (diff) | |
download | opie-ac7ddc479efedd5cbfb0f4a8a3e4fa304abfaa91.zip opie-ac7ddc479efedd5cbfb0f4a8a3e4fa304abfaa91.tar.gz opie-ac7ddc479efedd5cbfb0f4a8a3e4fa304abfaa91.tar.bz2 |
Keyboard filter restructuring based on model detection:
1) Added a KeyboardFilter to main.cpp
!! Please use this class for low-level/model-based filtering !!
2) Cursor keys are rotated for H31xx and H38xx
3) Power button long-press toggles backlight on iPAQs now
(Mapped to F34/F35 - just like Z's)
-rw-r--r-- | core/launcher/desktop.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index aa51898..ab4f14a 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp | |||
@@ -239,16 +239,19 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | |||
239 | } | 239 | } |
240 | 240 | ||
241 | if ( ke->simpleData.keycode == Key_F34 ) { | 241 | if ( ke->simpleData.keycode == Key_F34 ) { |
242 | if ( press ) emit power(); | 242 | if ( press ) emit power(); |
243 | return TRUE; | 243 | return TRUE; |
244 | } | 244 | } |
245 | if ( ke->simpleData.keycode == Key_SysReq ) { | 245 | // This was used for the iPAQ PowerButton |
246 | if ( press ) emit power(); | 246 | // See main.cpp for new KeyboardFilter |
247 | return TRUE; | 247 | // |
248 | } | 248 | // if ( ke->simpleData.keycode == Key_SysReq ) { |
249 | // if ( press ) emit power(); | ||
250 | // return TRUE; | ||
251 | // } | ||
249 | if ( ke->simpleData.keycode == Key_F35 ) { | 252 | if ( ke->simpleData.keycode == Key_F35 ) { |
250 | if ( press ) emit backlight(); | 253 | if ( press ) emit backlight(); |
251 | return TRUE; | 254 | return TRUE; |
252 | } | 255 | } |
253 | if ( ke->simpleData.keycode == Key_F32 ) { | 256 | if ( ke->simpleData.keycode == Key_F32 ) { |
254 | if ( press ) QCopEnvelope e( "QPE/Desktop", "startSync()" ); | 257 | if ( press ) QCopEnvelope e( "QPE/Desktop", "startSync()" ); |