home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14292 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  3.4 KB

  1. Path: sparky!uunet!crdgw1!rdsunx.crd.ge.com!ausable!doel
  2. From: doel@ausable.crd.ge.com (Michael Doel)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: Touchscreens and Multple Pointer Devices
  5. Keywords: touch pointer
  6. Message-ID: <1992Jul23.210636.26915@crd.ge.com>
  7. Date: 23 Jul 92 21:06:36 GMT
  8. References: <5720@taurus.cs.nps.navy.mil>
  9. Sender: doel@ausable (Michael Doel)
  10. Reply-To: doel@crd.ge.com
  11. Organization: GE Research & Development
  12. Lines: 60
  13. Nntp-Posting-Host: ausable.crd.ge.com
  14.  
  15. In article <5720@taurus.cs.nps.navy.mil>, hebo@hp850.mbari.org (Bob Herlien) writes:
  16. > I want to add a touchscreen to some X terminals for a control/display app
  17. > I'm developing, and I have some general questions about how they're integrated
  18. > into an X environment.
  19.  
  20. your problems sound very similar to the ones we are looking into
  21.  
  22.  
  23. > The touchscreen vendor I've located stated that X11R4 uses only a single
  24. > pointing device, but that X11R5 can have multiple ones.  How does this work?
  25. > Are there multiple mouseforms on the screen?  Are they both generating
  26. > events?  In Motif (1.2, I assume), can events from either device trigger
  27. > callbacks (arm, activate, etc)?
  28.  
  29. Not having spoke to your vendor, I can only assume that you were a bit
  30. misled.  As I understand it, X11Rn (for all n) will only allow one pointing
  31. device.  To allow more than one would require a relatively large change
  32. to the X protocol (hence X12R1 ?).  In particular, the event structure would
  33. need to include a field to indicate which pointing device generated the
  34. event.  You can't just add this to X11R5 and still have X11R4 apps working
  35. correctly.
  36.  
  37. There is a bit of hope however.  I was told by someone (I can't remember
  38. who unfortunately) that they were able to write a device driver which
  39. controls more than one physical device.  Since there is only one driver
  40. though, it looks like one logical device to the X Server.  This may be
  41. acceptable in your application since you will really only be using one
  42. of the devices at a time.  For us however, no luck (we need multiple
  43. logical devices in addition to multiple physical devices).
  44.  
  45. I have to admit to being quite surprised when I learned of this restriction
  46. in X.  Can anyone enlighten us as to why the restriction exists?  Is it
  47. much more complicated than simply putting extra information in some of the
  48. protocol messages & having the X server keep an array of pointers instead
  49. of just one?  With all of the flexibility already in X, I would have thought
  50. multiple logical pointers would have been included long ago.
  51.  
  52.  
  53. > Finally, since a touchscreen doesn't have buttons, how does one distinguish
  54. > between motion and button events using a touchscreen?
  55.  
  56. Usually, touching the screen (often triggered by breaking a light beam) is
  57. the same as a mouse button press at that location.  As you move your finger
  58. around, you'd be generating motion events.  When you finally pull your
  59. finger away from the screen, you'd have a ButtonReleased event. 
  60.  
  61. Please summarize any info you get on the subject after awhile.  Like I
  62. said, we're faced with the same problem & I think we may be forced into
  63. writing extensions to the X protocol (requiring additions to the MIT
  64. sample server, Xlib, Xt, etc).
  65.  
  66. -- 
  67. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68. Mike Doel                <doel@crd.ge.com>
  69. P.O. Box 8
  70. Schenectady, NY 12301            (518) 387-6203
  71.  
  72. "For every complex problem, there is a solution that is simple, neat
  73.  and wrong." - H.L. Mencken
  74. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  75.