Editing Using touch screen pressure data
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
This code snippet demonstrates how to get pressure data to xlib application. | This code snippet demonstrates how to get pressure data to xlib application. | ||
Xsp extension provides 'rawmode' which is used when touchscreen is calibrated, in this mode it is possible to receive pressure information. This can be used as a workaround because we don't have Xi there (at least yet). | Xsp extension provides 'rawmode' which is used when touchscreen is calibrated, in this mode it is possible to receive pressure information. This can be used as a workaround because we don't have Xi there (at least yet). | ||
- | < | + | <pre> |
#include <X11/X.h> | #include <X11/X.h> | ||
#include <X11/Xlib.h> | #include <X11/Xlib.h> | ||
Line 190: | Line 190: | ||
return 0; | return 0; | ||
} | } | ||
- | </ | + | |
+ | </pre> | ||
[[Category: Development]] | [[Category: Development]] |
Learn more about Contributing to the wiki.