Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
liveAssistant_web_demo
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
胡斌
5 years ago
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cac9d12cc849ec01d553e64f33ffd9063765f7ee
cac9d12c
1 parent
4cac5b6b
support receiving multi-points in a packet
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
26 行增加
和
0 行删除
demo.html
demo.html
查看文件 @
cac9d12
...
...
@@ -1007,6 +1007,32 @@
var
status
=
dv
.
getUint8
(
9
,
true
);
writeToScreen
(
'<span style="color: green;">ext_input_status: '
+
status
+
'</span>'
);
}
else
if
(
4
==
type
||
16
==
type
){
var
nPoint
=
dv
.
getUint16
(
9
,
true
);
for
(
var
i
=
0
;
i
<
nPoint
;
i
++
)
{
var
nPress
=
dv
.
getUint16
(
11
+
i
*
6
,
true
);
var
x
=
dv
.
getUint16
(
13
+
i
*
6
,
true
);
var
y
=
dv
.
getUint16
(
15
+
i
*
6
,
true
);
if
(
14
==
type
)
{
if
(
rotate_degree
==
0
)
{
draw_ext_input
(
x
,
y
,
nPress
);
}
else
if
(
rotate_degree
==
90
)
{
draw_ext_input
(
y
,
ext_input_panel_width
-
x
,
nPress
);
}
else
if
(
rotate_degree
==
180
)
{
draw_ext_input
(
ext_input_panel_width
-
x
,
ext_input_panel_height
-
y
,
nPress
);
}
else
{
draw_ext_input
(
ext_input_panel_height
-
y
,
x
,
nPress
);
}
}
else
{
draw_ext_input
(
x
,
y
,
nPress
);
}
}
// writeToScreen('<span style="color: green;">pen position: ' + x + ',' + y + ',' + nPress + '</span>');
}
else
if
(
10
==
type
)
{
ext_input_open
=
true
;
var
status
=
dv
.
getInt32
(
9
,
true
);
...
...
请
注册
或
登录
后发表评论