1. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Mapping DPAD cursor key

Discussion in 'Motorola Droid Pro' started by norifuku, Jan 7, 2011.

  1. norifuku
    Offline

    norifuku New Member

    Joined:
    Dec 27, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    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.
  2. guidot
    Offline

    guidot Developer Relations Staff Member Premium Member

    Joined:
    Feb 10, 2010
    Messages:
    7,350
    Likes Received:
    270
    Trophy Points:
    0
    Location:
    Massachusetts
    Excellent idea!

    Sent from my MetiCk/DavrosModded A855.
  3. jhumbo
    Offline

    jhumbo New Member

    Joined:
    Dec 28, 2010
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    0
    Nice! I'm going to give this a try. Thanks for sharing.
  4. DroidToro
    Offline

    DroidToro New Member

    Joined:
    Dec 20, 2010
    Messages:
    110
    Likes Received:
    0
    Trophy Points:
    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.
  5. jhumbo
    Offline

    jhumbo New Member

    Joined:
    Dec 28, 2010
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    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.
  6. google123
    Offline

    google123 New Member

    Joined:
    Sep 23, 2010
    Messages:
    472
    Likes Received:
    0
    Trophy Points:
    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?
  7. norifuku
    Offline

    norifuku New Member

    Joined:
    Dec 27, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Tokyo
    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
  8. norifuku
    Offline

    norifuku New Member

    Joined:
    Dec 27, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Tokyo
    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).
  9. norifuku
    Offline

    norifuku New Member

    Joined:
    Dec 27, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    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!
  10. obutto
    Offline

    obutto New Member

    Joined:
    Nov 29, 2009
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    0
    I love you....

    No homo.
  11. Kaos2flo
    Offline

    Kaos2flo New Member

    Joined:
    Mar 13, 2010
    Messages:
    264
    Likes Received:
    4
    Trophy Points:
    0
    Location:
    Tampa, FL
    Is there anyway to map the "." key so when you long hold, its "?"
  12. Kaos2flo
    Offline

    Kaos2flo New Member

    Joined:
    Mar 13, 2010
    Messages:
    264
    Likes Received:
    4
    Trophy Points:
    0
    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?
  13. hotkoko
    Offline

    hotkoko New Member

    Joined:
    Feb 1, 2011
    Messages:
    124
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    ny
    Don't need a cursed, cause its TOUCH SCREEN!!!

    Sent from my DROID PRO
  14. hanybanoub
    Offline

    hanybanoub New Member

    Joined:
    Feb 27, 2011
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    can't get it to work

    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: Feb 27, 2011
  15. hanybanoub
    Offline

    hanybanoub New Member

    Joined:
    Feb 27, 2011
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    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.
  16. norifuku
    Offline

    norifuku New Member

    Joined:
    Dec 27, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Tokyo
    You can't do it with just remapping some. Because current android key configuration doesn't have "long-press" function. If you want to do so, you have to write some code. Android is open source.
  17. norifuku
    Offline

    norifuku New Member

    Joined:
    Dec 27, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Tokyo
    How about permissions? These files needed to be 644.
    Perhaps, the system couldn't read .bin file, then fallback to read other default configuration file such as qwery.kcm.bin (So some key won't work properly).
  18. Kaos2flo
    Offline

    Kaos2flo New Member

    Joined:
    Mar 13, 2010
    Messages:
    264
    Likes Received:
    4
    Trophy Points:
    0
    Location:
    Tampa, FL
    Dang... I was hoping it was as easy as remapping.

    Anyone like to write some codes to long press and get alt symbols? Lol
    It'll be really useful for everyone. Cause seriously, the majority of people isn't going to use the letters with the accents. I also like blackberry when you long press you get caps. Even that is more useful then accented vowels and such.
  19. jhumbo
    Offline

    jhumbo New Member

    Joined:
    Dec 28, 2010
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    0
    We know it's a touch screen. But DPAD right and left are very convenient when you click into a field and you are off by one or two characters. Also very convenient to do a ALT-DPAD to select some text.

    Thanks much to the OP for posting this for us. I have been loving this simple mod.
  20. hanybanoub
    Offline

    hanybanoub New Member

    Joined:
    Feb 27, 2011
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    Thanks my friend. I don't know what 644 is...please can you and others please advice this novice :)

    If there are step by step instructions that would help.

    I had to re-sbf to get it back to 'normal'.
Search tags for this page
android dpad up alt
,
android kcm dpad
,
android keycode dpad down
,
cursor rojo motorola pro
,
dpad cursor
,
dpad droid razr maxx
,
droid d'pad button fix
,
droid pro arrow keys
,

droid pro cursor

,
droidpro cursor
,
key mapping
,
keycode dpad right
,
motorola d pad
,
what are right/left pointers on period/comma key
,
what is android dpad buttons