阅读:15642回复:2
Amlogic添加鼠标遥控按键
common-添加遥控鼠标键功能支持-需要在dts中对应的遥控码值表中添加.zip
在sdk中打上该补丁,然后在dts中将鼠标按键映射为:100即可:
|
|
最新喜欢:zhaoyf...
|
沙发#
发布于:2019-11-25 09:53
..
|
|
|
板凳#
发布于:2021-09-03 15:14
有2个遥控可以这样:
if (index == 0 || index == 1) { ret = of_property_read_u32(map, "fn_key_scancode", &value); ptable->tab.cursor_code.fn_key_scancode = (__u16)value; ret = of_property_read_u32(map, "cursor_left_scancode", &value); ptable->tab.cursor_code.cursor_left_scancode = (__u16)value; ret = of_property_read_u32(map, "cursor_right_scancode", &value); ptable->tab.cursor_code.cursor_right_scancode = (__u16)value; ret = of_property_read_u32(map, "cursor_up_scancode", &value); ptable->tab.cursor_code.cursor_up_scancode = (__u16)value; ret = of_property_read_u32(map, "cursor_down_scancode", &value); ptable->tab.cursor_code.cursor_down_scancode = (__u16)value; ret = of_property_read_u32(map, "cursor_ok_scancode", &value); ptable->tab.cursor_code.cursor_ok_scancode = (__u16)value; } |
|