Advertisement

增加Android车载蓝牙应用的盘控器

阅读量:
1. 方向盘事件转换

基于lin总线转换的假设下,在安卓侧将实现标准的keyevent:

复制代码
    /** Key code constant: Play/Pause media key. */
    public static final int KEYCODE_MEDIA_PLAY_PAUSE= 85;
    /** Key code constant: Stop media key. */              
    public static final int KEYCODE_MEDIA_STOP      = 86;
    /** Key code constant: Play Next media key. */
    public static final int KEYCODE_MEDIA_NEXT      = 87;
    /** Key code constant: Play Previous media key. */
    public static final int KEYCODE_MEDIA_PREVIOUS  = 88;

操作多媒体控制按钮时,请注意安卓系统的inputdispatcher功能的具体说明及相关信息可参考我的博客:

Android InputFlinger简单分析)将

全部评论 (0)

还没有任何评论哟~