What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Mapping DPAD cursor key

norifuku

New Member
One thing I really unhappy with Droid Pro is this phone does not have cursor key. Some time I go mad when I wants to move a cursor just 1 character right or left. So I remap key configuration.

I rewrote these files
  • /system/usr/keychars/cdma_venus2-keypad.kcm.bin
  • /system/usr/keylayout/cdma_venus2-keypad.kl

and replace these keys and mappings.
  • VOICE Search -> DPAD_RIGHT
  • PERIOD -> DPAD_LEFT
  • Comma -> Period
  • Shift+Comma -> Comma
  • ALT+Shift+M -> Back Slash
  • ALT+Shift+L -> | (pipe)
  • ALT+Shift+J -> < (less than)
  • ALT+Shift+K -> > (more than)
  • ALT+Shift+U -> [
  • ALT+Shift+I -> ]
  • Shift+@ -> ?

Now I have DPAD Right and Left, and I don't have to screw up in SSH console :)
Anyone wants to try this? See attachment.
 
Nice. I've been looking for a terminal keyboard solution. Alternative soft keyboards don't work on the dpro. Now all we need is an app that can quickly pop a key combo help screen in and out of view.
 
Went ahead and swapped out with your files. Very nice! I love having DPAD left and right now. And I like how "shift-." starts selecting to the left and "shift-voice" starts selecting to the right.

Question though? How did you generate the cdma_venus2-keypad.kcm.bin file? I'd like to make some changes to what you've got.
 
I wanna try this as well but I rely on my Voice Key to bring up ChompSMS quick compose and even though I have set the side key to Voice Search, it doesn't work. Any ideas?
 
Went ahead and swapped out with your files. Very nice! I love having DPAD left and right now. And I like how "shift-." starts selecting to the left and "shift-voice" starts selecting to the right.

Question though? How did you generate the cdma_venus2-keypad.kcm.bin file? I'd like to make some changes to what you've got.

I didn't generate a file. Just alternate original file with binary editor.

For example:
00001d0: 2c 00 00 00 50 00 37 00 70 00 50 00 40 00 60 00

This should be 32byte header and key codes.
In this example, Keycode is 0x0000002c
and after that
0x0070 = "p"
0x0050 = "P" Shift+p
0x0040 = "@" Alt+p
0x0060 = "`" Shift+Alt+p

So if you want input "*" with Alt+p, replaece 0x0040 to 0x002A. That it.

Keymaps and Keyboard Input | Android Open Source
 
I wanna try this as well but I rely on my Voice Key to bring up ChompSMS quick compose and even though I have set the side key to Voice Search, it doesn't work. Any ideas?

My friend mapped DPAD LEFT on "@" key and DPAD RIGHT on "." key. Of cause in this case, you have to find some other key combination for remapping @ ~ . ? characters. Such as Shift+Alt+z goes "@". (or just don't use them). I thought it's little bit complicate. So I mapped DPAD LEFT on Voice search key.

Talk about Side key, I just add WAKE function on it. After the device woke up, Side key works as they before (default: it's firing up Calendar).
 
Some guys asking how to use ESC and TAB key on connectbot on another thread. So I add these codes.

  • ALT+Shift+q -> ESC
  • ALT+Shift+a -> TAB
  • ALT+Shift+z -> ~

have fun!
 
bump

Anybody know if we can remap buttons so when we long hold, it will alt automatically? For example when you long hole "q" it will be a "1".
Yes no maybe so?
 
can't get it to work

One thing I really unhappy with Droid Pro is this phone does not have cursor key. Some time I go mad when I wants to move a cursor just 1 character right or left. So I remap key configuration.

I rewrote these files
  • /system/usr/keychars/cdma_venus2-keypad.kcm.bin
  • /system/usr/keylayout/cdma_venus2-keypad.kl

and replace these keys and mappings.
  • VOICE Search -> DPAD_RIGHT
  • PERIOD -> DPAD_LEFT
  • Comma -> Period
  • Shift+Comma -> Comma
  • ALT+Shift+M -> Back Slash
  • ALT+Shift+L -> | (pipe)
  • ALT+Shift+J -> < (less than)
  • ALT+Shift+K -> > (more than)
  • ALT+Shift+U -> [
  • ALT+Shift+I -> ]
  • Shift+@ -> ?

Now I have DPAD Right and Left, and I don't have to screw up in SSH console :)
Anyone wants to try this? See attachment.

Firstly thank you for this GREAT work!

I cannot get it to work. I copied the files to my SD card, then used Super Manager (have root), went to sys folders, renamed originals to .OLD, and then copied yours to the folders, and still it doesn't work. Please can you advise?

I also moved (cut) the .OLD files to the SD card entirely and still it doesn't work.

Thank you.
 
Last edited:
number keys not mapped properly

funny even after I put all original files back the 1234 etc row do not work with ALT.

They work on the letters side (left side by sdf letters etc with ALT).

Can anyone please help?

Thanks in advance.
 
Back
Top