|
Re: Re: h2200_kbd: Remapping all 4 special keys to F9-F12 (Was: [H2200-port: msg#00033linux.ports.h2200
Hi, On 8/7/06, Paul Sokolovsky <pmiscml-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote: Hello Giorgio, But as there's no need to haste, we can as well also think about the mapping. That way, one device won't be worse than another, and any fix and I don't think that a central include file is needed at all, if we can just agree on common keycodes. Ok, so let's consider what we have/may have: Again, I think this is overkill for up to four buttons in most cases. 2. The least common denominator we haev is 6 buttons which *almost* That is KEY_POWER on most devices already (and should be). - Record (most have; well, h2200 is one of the few exceptions) Can we use all codes from linux/input.h? There is a KEY_RECORD. The magician also as - a camera key (KEY_CAMERA) - a volume slider (KEY_VOLUMEUP/DOWN) - 4 app buttons Yes, but with wildly different labels... For example the hx4700 has contacts, calendar, email and task manager buttons, the magician has only contacts and calendar (and the two phone buttons). 3. But, appbuttons mapping will be funky for many devices. If you'd be ack. There is a KEY_CALENDAR, but nothing for contacts. - There're also Tasks, Mail(Internet, Sync, ...), and Home There is a KEY_PHONE in input.h, but nothing about answer/hangup. 4. Phone edition devices usually have even more buttons, like Volume I prefer the mapping by function where possible. Unfortunately there are quite some buttons that still don't have a keycode defined in the input layer. 2. Let the default correspondence between positional and functional to No, please don't use keys that can be found on a common bluetooth keyboard. Can't we use KEY_PROG1-4 for that or something like this? 3. Need to fugure out mapping for other keys. Definitely. All in all, that gives following draft <input-pda.h> I don't like this. Can't we just extend linux/input.h officially? I don't see how it makes sense to redefine KEY_POWER as KEY_PDA_POWER, for example. #define KEY_PDA_RECORD /* There's KEY_RECORD, but it's >127. Well, What is it exactly about the keycodes > 127 that makes problems? #define KEY_PDA_APP1 KEY_F9 This doesn't work too well if you use a bluetooth keyboard. /* Default functional mapping is those of h1900/h2000/h4000/hx4700 or KEY_CALENDAR? #define KEY_PDA_CONTACTS KEY_PDA_APP2 or KEY_MAIL? #define KEY_PDA_HOME KEY_PDA_APP4 This sounds a lot like KEY_HOME. Is there a better name? #define KEY_PDA_TASKS /* assign */ Hm. I wish there was a KEY_PHONE_HANGUP in addition to the already existing KEY_PHONE. #define KEY_PDA_VOLUMEDOWN KEY_VOLUMEDOWN Again, I don't see how this renaming improves anything. Just use KEY_VOLUMEUP/DOWN. #define KEY_PDA_JOGUP /* assign, perhaps KEY_PAGEUP? */ There is a KEY_SCROLLUP and KEY_SCROLLDOWN. Not sure what the jog wheels are used for, usually. To sum it up, I wish I could use the following mappings: hx4700 KEY_POWER KEY_RECORD KEY_CONTACTS KEY_CALENDAR KEY_MAIL the task key... magician KEY_POWER KEY_CAMERA KEY_VOLUMEUP KEY_VOLUMEDOWN KEY_RECORD KEY_PHONE KEY_PHONE_HANGUP KEY_CONTACTS KEY_CALENDAR Of those, KEY_CONTACTS and KEY_PHONE_HANGUP don't exist. The phone hangup keys could be mapped to KEY_CANCEL, at least that's what it is used for on some phones, too. The ipaq task manager key could be mapped to some KEY_TASK or to KEY_MENU for all I care.. I never use it except for starting the bootloader :-) cheers Philipp |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Familiar Unstable Feed: 00033, automatic_jack |
|---|---|
| Next by Date: | v0.8.4-rc3 - wifi problem which doesn't exist under kernel 2.6.15-hh0: 00033, Philipp H. Mohr |
| Previous by Thread: | Re: [Kernel-discuss] Re: h2200_kbd: Remapping all 4 special keys to F9-F12 (Was: keboard, brightness with opie on h2200)i: 00033, Pawel Kolodziejski |
| Next by Thread: | Re: h2200_kbd: Remapping all 4 special keys to F9-F12 (Was: keboard, brightness with opie on h2200): 00033, Giorgio Padrin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |