VirtIO 输入设备解码器
仅包含部分键盘按键、鼠标的按键解码(virtio) 解码需要传入 event_type、code、value 三个值 鼠标滚轮会同时以 1、2 编码 even_type,为了避免出错,解码器只处理编号 2
VirtIO Input Decoder
Only support part of keyboard and mouse input. You should provide event_type, code and value to the deocder MouseScroll has event_type both 1 and 2, in case of resulting error, decoder will only deal with the event_type 2 for mouse scroll
Example
use ;
let mouse = decode.unwrap;
assert_eq!;
2021年4月15日 zg