Announcement

Collapse
No announcement yet.

slight anomolous behaviour of touch_*

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • slight anomolous behaviour of touch_*

    I'm using the diablo 16 serial environment,
    running in portrait mode

    touch.set(0) # enable touch
    touch.detect_region(0,0,272-1,240=1) # set to top half of the screen
    while True:
    print( touch.get(0))


    This is written using my python wrapper classes, but it shoudln't make any difference

    The anomaly is that if I touch in the bottom half I still get the touch up message (2), but not move(3) or down(1).
    The upper half behaves as expected



  • #2
    A touch up doesn't have coordinates associated with it (you've release the touch, the screen isn't touched), so there's no way of associating it with a region.

    Well, there sort of is, if the display kept and considered historical data, but in reality it cannot tell.
    Mark

    Comment


    • #3
      OK no big deal, just a slight deviation in what I was expecting.

      Comment

      Working...
      X