Re: touch screen events



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ttblue wrote:
Using gtk on an embedded unit with a touch screen.

 I would like to boot up my application and if the screen is touched
anywhere be able to see that.
Then I can show a calibration screen.

 My question is how do I get to see the clicks/touches coming in before they
are assigned to an event.

As I recall (having worked on a touch screen system a few years ago), your X
driver probably needs to be configured to know about your event driver (your
touch screen driver), and then when X "boots", everything's all set. The touch
screen is treated like a mouse click.

Now... Getting X to tell you that the mouse was clicked means that you need to
run your application as part of starting X. There are numerous ways to do that,
depending upon which window manager you're using.

Does that help?

- -Greg

 Or is there some other clever way to skin this cat ?

/T


- --
+---------------------------------------------------------------------+

Please also check the log file at "/dev/null" for additional information.
                (from /var/log/Xorg.setup.log)

| Greg Hosler                                   ghosler redhat com    |
+---------------------------------------------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAknM+3kACgkQ404fl/0CV/SGSACfae6WYLStROK3CrOjnKhMeaQn
s7gAnjzxrcnA/L0o9tcvbS6zTeYJFr/6
=Bpao
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]