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 | + | {{Midgard article}} |
- | 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). | + | |
- | + | ||
+ | Sample Program: | ||
+ | <pre> | ||
+ | /** | ||
+ | This program 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). | ||
+ | */ | ||
+ | |||
#include <X11/X.h> | #include <X11/X.h> | ||
#include <X11/Xlib.h> | #include <X11/Xlib.h> | ||
Line 56: | Line 69: | ||
*/ | */ | ||
int | int | ||
- | main (int argc, char *argv | + | main (int argc, char *argv |
{ | { | ||
long key_pressed; | long key_pressed; | ||
Line 190: | Line 203: | ||
return 0; | return 0; | ||
} | } | ||
- | |||
- | [[Category: | + | </pre> |
+ | |||
+ | [[Category: HowTos]] | ||
+ | [[Category:Midgard wiki]] |
Learn more about Contributing to the wiki.