Comments (8)
1,具体哪里不正常,不正常的点是什么?
2,回退到哪一个版本是正常的?
from awtk.
1.不正常体现在之前能正常触发按键绑定的命令,现在不能触发,每次按键按下log打印unkown code: e.type=0 code=0 value=0
2.回退到commit 3fabccbfd135c26d47e78c2e5ba36dba71aecd9c正常,中间版本没试过。
from awtk.
你应该是用 linux-fb 的适配层吧,
因为 unkown code: e.type=0 code=0 value=0 应该是 linux-fb 里面打印出来的信息,就是无法识别驱动读取的按键类型而打印出来的,如果是这个打印信息应该和 awtk 的版本没有关系的吧。
from awtk.
看了awtk-linux-fb下面的awtk-port/input_thread/input_thread.c的input_dispatch_one_event都是通过标准的read读取输入按键输入设备,输入设备驱动没有修改过,之前都正常的。而且回退AWTK版本可以恢复正常
from awtk.
你的按键是物理按键?还是鼠标/触摸点击?你要么跟一下啊,linux-fb 的代码,看看为啥会触发这个打印?正常来说触发这个打印的话,awtk 应该是收不到事件的,所以 awtk 就没有反应了
from awtk.
我今天使用linux的虚拟机来测试,用的 awtk 和 linux-fb 都是最新的,没有发现什么问题,下面是测试的 gif
from awtk.
不好意思我没说清楚,是物理按键不是触摸键也不是键盘鼠标按键。
从底层读取的按键事件如下,EV_KEY-按键按下 -》EV-SYN-按键同步 -》 EV_KEY-按键抬起
zhaoyangxia, type = 1, code = 60, value = 1
zhaoyangxia, type = 0, code = 0, value = 0
zhaoyangxia, type = 1, 1, code = 60, value = 0
问题出在EV_SYN这个分支
之前也是一样的按键事件,在EV-SYN这个分支也会打印unkown code: e.type=0 code=0 value=0,但是按键功能还是正常的,所以调用input_dispatch_one_event(run_info_t* info) 时传参应该是跟之前版本有变化
from awtk.
看上面的代码,给我的感觉有点奇怪,如果是物理按键的话,那应该是发送 key_down 和 key_up 才对,不应该用 porinter_down 这些,按照发送的消息来看,感觉给 awtk 发出去一个鼠标点击的事件,但是鼠标点击是要提供坐标的,那坐标又是啥呢?
不太明白的的应用场景,你可以说说你是怎样使用的?我可以模拟测试一下
from awtk.
Related Issues (20)
- 请问问题label_resize_to_content? HOT 4
- Ubuntu18.04执行scons报: wayland-util.h: No such file or directory HOT 1
- xml布局属性值的介绍有吗
- 关于Linux下资源加载问题? HOT 2
- 【关于AWTK 鼠标卡顿的问题】
- 能否提供Rust语言的绑定 HOT 2
- 一个页面带有gif控件,关闭这个页面时,有时在屏幕留下残影 HOT 11
- gif problem
- AttributeError: 'tuple' object has no attribute 'lower'
- mledit显示文本问题,属性 字体设置为非默认字体时, 失去焦点字才能显示?
- 发生较难排查的偶现奔溃时,awtk有提供什么好的排查方式吗 HOT 1
- 页面提示找不到view_model HOT 3
- 获取不到开启auto_adjust_size属性的label控件高度 HOT 1
- freetype渲染有点问题,truetype内置的bitmap字体数字和字母渲染不正常,中文正常。矢量字体全部正常 HOT 1
- dialog_toast短暂提示信息是否支持弹窗期间收到按键行为自动退出 HOT 6
- Incorrect format specifier HOT 1
- Missing null check HOT 3
- window_manager_default_close_window 关闭窗口死循环问题 HOT 7
- button长按之后松开,pointer_up事件偶尔不触发 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awtk.