This page was last modified 10:39, 9 April 2008.
Capturing the slider events
From Forum Nokia Wiki
The Nokia N95's slider sends the following key events:
(1) Open keyboard slider aType = 0x0003, iCode = 0x0000, iScanCode = 0x00ac (EStdKeyDevice8) aType = 0x0002, iCode = 0x0000, iScanCode = 0x00ac (2) Close keyboard slider aType = 0x0003, iCode = 0x0000, iScanCode = 0x00ad (EStdKeyDevice9) aType = 0x0002, iCode = 0x0000, iScanCode = 0x00ad (3) Open music slider aType = 0x0003, iCode = 0x0000, iScanCode = 0x00a8 (EStdKeyDevice4) aType = 0x0002, iCode = 0x0000, iScanCode = 0x00a8 (4) Close music slider aType = 0x0003, iCode = 0x0000, iScanCode = 0x00a9 (EStdKeyDevice5) aType = 0x0002, iCode = 0x0000, iScanCode = 0x00a9
Take care! In the S60 SDK (eikon.hrh), there are some helpful ids defined:
#define EKeyGripOpen EKeyDevice4 #define EKeyGripClose EKeyDevice5 #define EKeyTwistOpen EKeyDevice8 #define EKeyTwistClose EKeyDevice9
But they do not help. There is never a iCode sent. The slider only sends iScanCode events. There is no EStdKeyGripOpen defined, so you have to put the generic defines from Symbian into your code.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| S60 FP3 System.outs ? | tenren | Mobile Java Tools & SDKs | 3 | 2007-07-30 10:04 |
| Problem with Views | ashfaq.ghori | General Symbian C++ | 4 | 2006-08-18 06:33 |
| Simulation of Key events | lafondseb | Mobile Java Tools & SDKs | 3 | 2005-05-21 13:33 |
| Issues whie video recording in Nokia 7610... | Adeesh | Series 40 & S60 Platform Feedback | 2 | 2006-10-25 06:46 |
| Hiding a Console | ssn.kishore | General Symbian C++ | 29 | 2008-04-25 14:00 |
