I have a cs918 android media player, I like it but I do not have play/pause, rewind, forward buttons on remote controller. I will show how to remap 1,2,3 buttons to these media buttons. There is the file: rkxx-remotectl.kl in "system/usr/keylayout". It has the remote controller key layouts. Save this file to a place for a security reason. And rewrite some lines:
#$_FOR_ROCKCHIP_RBOX_$
#$_rbox_$_modify_$_chenzhi_20120220: add for IR remote
key 116 POWER WAKE
key 113 VOLUME_MUTE
key 114 VOLUME_DOWN
key 400 TV_MEDIA_MULT_BACKWARD
key 401 TV_MEDIA_MULT_FORWARD
key 115 VOLUME_UP
key 172 HOME
key 158 BACK
key 28 ENTER
key 103 DPAD_UP
key 108 DPAD_DOWN
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 139 MENU WAKE_DROPPED
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 388 TV_KEYMOUSE_MODE_SWITCH
key 11 0
key 14 DEL
key 59 F1
key 60 F2
key 61 F3
key 62 F4
key 63 F5
key 64 F6
key 163 MEDIA_NEXT
key 164 MEDIA_PLAY_PAUSE
key 165 MEDIA_PREVIOUS
Rewrite the key 2,key 3,key 4 buttons to these:
key 2 MEDIA_REWIND WAKE
key 3 MEDIA_PLAY_PAUSE WAKE
key 4 MEDIA_FAST_FORWARD WAKE
Restart the media player and done!
No comments:
Post a Comment