键盘向下箭头的转义序列
Escape sequence for Keyboard Down Arrow
我有一个 Android JAVA 应用程序连接到我从这里购买的 USB 蓝牙键盘模拟器 http://intelletto.com/products
到目前为止,我可以发送 转义序列,例如 \t
、\n
,但我不确定如何发送命令按键按下事件。我是这样做的:
char str = '\t';
byte[] command = String.valueOf(str).getBytes();
mBTService.write(command);
此外,我从 USB 提供商那里得到了这个 HID ASCII 映射 table,但我不确定如何使用它。
https://drive.google.com/file/d/1hZV5mdaPCN93BK6bYZeX2h9y5lx3R2hS/view?usp=sharing
根据你发的地图,应该是这样的:
byte[] command = new byte[]{(byte)201};
mBTService.write(command);
... 因为 201
是 "DownArr" 的代码(在此特定映射中,尽管这不是标准编码)。
我有一个 Android JAVA 应用程序连接到我从这里购买的 USB 蓝牙键盘模拟器 http://intelletto.com/products
到目前为止,我可以发送 转义序列,例如 \t
、\n
,但我不确定如何发送命令按键按下事件。我是这样做的:
char str = '\t';
byte[] command = String.valueOf(str).getBytes();
mBTService.write(command);
此外,我从 USB 提供商那里得到了这个 HID ASCII 映射 table,但我不确定如何使用它。
https://drive.google.com/file/d/1hZV5mdaPCN93BK6bYZeX2h9y5lx3R2hS/view?usp=sharing
根据你发的地图,应该是这样的:
byte[] command = new byte[]{(byte)201};
mBTService.write(command);
... 因为 201
是 "DownArr" 的代码(在此特定映射中,尽管这不是标准编码)。