4 Wire resistive touch screen, Need help


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Location
    London
    Posts
    251


    Did you find this post helpful? Yes | No

    Default Re: 4 Wire resistive touch screen, Need help

    Makes much more sense now. Thanks a lot for all the info.

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 4 Wire resistive touch screen, Need help

    I can't see why you'd use an interrupt for a touch screen,
    and if there is a valid reason I'd like to know what it is.

    Why not follow the way 2D games work?

    1) Draw current frame to screen,

    2) Check for user input,

    3) act on user input, and apply any movement/calculations for next frame,

    4) goto step one.

    It would seem if you're using an interrupt, and your program is in the middle of step 3
    while receiving new input you are complicating things.
    Last edited by Art; - 16th February 2012 at 16:02.

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: 4 Wire resistive touch screen, Need help

    Quote Originally Posted by Art View Post
    I can't see why you'd use an interrupt for a touch screen,
    and if there is a valid reason I'd like to know what it is.

    Why not follow the way 2D games work?

    1) Draw current frame to screen,

    2) Check for user input,

    3) act on user input, and apply any movement/calculations for next frame,

    4) goto step one.

    It would seem if you're using an interrupt, and your program is in the middle of step 3
    while receiving new input you are complicating things.
    No, there is no interrupt in the program I posted.

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts