|
沙发
楼主 |
发表于 2016-7-5 10:13:04
|
只看该作者
已经解决,修改文件:android\kernel\drivers\input\remotectl\rk_pwm_remotectl.c
- static struct rkxx_remote_key_table remote_key_table_3288_ext[] = {
- {0xFA, KEY_ENTER},//ok = DPAD CENTER
- {0xB5, KEY_BACK},
- {0xFC, KEY_UP},
- {0xFB, KEY_DOWN},
- {0xFE, KEY_LEFT},
- {0xFD, KEY_RIGHT}, ////////
- {0xAE, KEY_HOME}, //home
- {0xF9, KEY_VOLUMEUP},
- {0xF8, KEY_VOLUMEDOWN},
- {0xE2, KEY_SEARCH}, //search
- {0xFF, KEY_POWER}, //power off
- {0xEE, KEY_MUTE}, //mute
- {0xF7, KEY_MENU},
- {0xF6, KEY_1 },
- {0xF5, KEY_2 },
- {0xF4, KEY_3 },
- {0xF3, KEY_4 },
- {0xF2, KEY_5 },
- {0xF1, KEY_6 },
- {0xF0, KEY_7 },
- {0xEF, KEY_8 },
- {0xEE, KEY_9 },
- {0xED, KEY_0 },
- };
复制代码
- #if 1//For 3288 external interface
- {
- .usercode = 0x89f3,
- .nbuttons = 23,
- .key_table = &remote_key_table_3288_ext[0],
- },
- #endif
复制代码
另外需要修改Makefile,要将remotectl编译进内核 |
|