开发者

How can you detect the pressure with which the screen is pressed?

开发者 https://www.devze.com 2023-01-04 15:41 出处:网络
Hey all .. i wanted to k开发者_开发知识库now, in C++/Qt, how can one detect with how much pressure the screen is being pressed when a project is on the N900 ?.. Can anyone help me on this ?Its very mu

Hey all .. i wanted to k开发者_开发知识库now, in C++/Qt, how can one detect with how much pressure the screen is being pressed when a project is on the N900 ?.. Can anyone help me on this ?


Its very much possible to get pressure data. In GTK/GDK you register for all extension events with gtk_widget_set_extension_events()

gtk_widget_set_extension_events(widget, GDK_EXTENSION_EVENTS_ALL);

and you will start receiving move/pressure events as well. The link Olorin posted could be the Qt interface for the same, but I haven't used it so cannot say for sure.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号