bpi-ir:香蕉皮尔接收器节点

时间:2024-05-30 02:27:25
【文件属性】:

文件名称:bpi-ir:香蕉皮尔接收器节点

文件大小:6KB

文件格式:ZIP

更新时间:2024-05-30 02:27:25

JavaScript

bpi-ir 香蕉皮尔接收器节点 职能 ## start(device)如果未提供设备参数,则使用/ dev / input / event0 ## stop()关闭事件流 ## on(event,callback)接收按键事件可能的事件:向上,向下,按键 ###回调向上/向下事件返回带有键值的简单数字,键事件返回事件对象: { tssec : 12324 , //event time in seconds tsusec : 567 , //event time ms part type : 1 , //event type key : 123 , //event key isDown : true //key is pressed } 用法 var ir = new IR ( ) ; ir . start ( ) ; ir . on ( 'up' , funct


【文件预览】:
bpi-ir-master
----.gitignore(526B)
----package.json(507B)
----LICENSE(11KB)
----README.md(626B)
----ir.js(1KB)

网友评论