Mapping DPAD cursor key

norifuku

New Member
Joined
Dec 27, 2010
Messages
19
Reaction score
0
Location
Tokyo
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.
 

guidot

Developer Relations
Staff member
Premium Member
Joined
Feb 10, 2010
Messages
7,292
Reaction score
271
Location
Massachusetts
Excellent idea!

Sent from my MetiCk/DavrosModded A855.
 

jhumbo

Member
Joined
Dec 28, 2010
Messages
53
Reaction score
0
Nice! I'm going to give this a try. Thanks for sharing.
 

DroidToro

Member
Joined
Dec 20, 2010
Messages
111
Reaction score
0
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.
 

jhumbo

Member
Joined
Dec 28, 2010
Messages
53
Reaction score
0
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.
 

google123

Member
Joined
Sep 23, 2010
Messages
471
Reaction score
0
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?
 
OP
norifuku

norifuku

New Member
Joined
Dec 27, 2010
Messages
19
Reaction score
0
Location
Tokyo
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
 
OP
norifuku

norifuku

New Member
Joined
Dec 27, 2010
Messages
19
Reaction score
0
Location
Tokyo
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).
 
OP
norifuku

norifuku

New Member
Joined
Dec 27, 2010
Messages
19
Reaction score
0
Location
Tokyo
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!
 

Kaos2flo

Member
Joined
Mar 13, 2010
Messages
264
Reaction score
4
Location
Tampa, FL
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?
 

hotkoko

Member
Joined
Feb 1, 2011
Messages
124
Reaction score
0
Location
ny
Don't need a cursed, cause its TOUCH SCREEN!!!

Sent from my DROID PRO
 

hanybanoub

New Member
Joined
Feb 27, 2011
Messages
26
Reaction score
0
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:

hanybanoub

New Member
Joined
Feb 27, 2011
Messages
26
Reaction score
0
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.
 
Top