Mapping DPAD cursor key

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

  1. norifuku

    norifuku New Member

    Joined:
    Dec 27, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tokyo
    Ratings:
    +0
    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

    guidot Developer Relations
    Staff Member Premium Member

    Joined:
    Feb 10, 2010
    Messages:
    7,347
    Likes Received:
    274
    Trophy Points:
    198
    Location:
    Massachusetts
    Ratings:
    +274
    Excellent idea!

    Sent from my MetiCk/DavrosModded A855.
     
  3. jhumbo

    jhumbo Member

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

    DroidToro Member

    Joined:
    Dec 20, 2010
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +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

    jhumbo Member

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

    google123 Member

    Joined:
    Sep 23, 2010
    Messages:
    471
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +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

    norifuku New Member

    Joined:
    Dec 27, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tokyo
    Ratings:
    +0
    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

    norifuku New Member

    Joined:
    Dec 27, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tokyo
    Ratings:
    +0
    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

    norifuku New Member

    Joined:
    Dec 27, 2010
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Tokyo
    Ratings:
    +0
    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

    obutto New Member

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

    No homo.
     
  11. Kaos2flo

    Kaos2flo Member

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

    Kaos2flo Member

    Joined:
    Mar 13, 2010
    Messages:
    264
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    Tampa, FL
    Ratings:
    +4
    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?
     
Search tags for this page
android kcm dpad
,
android keycode dpad down
,
cursor rojo motorola pro
,
dpad droid razr maxx
,
droid d'pad button fix
,
droid pro arrow keys
,

droid pro cursor

,
key mapping
,
motorola d pad
,
what are right/left pointers on period/comma key