Touch_X Touch_Y Question
Posted: Thu Jul 04, 2013 3:39 am
Not sure where to post this question so I will try here
First off I am not a programmer by trade and it is only a hobby that seems to plague me with hate. Maybe that goes for any programmer but I don't know any personally.
Question:
I have been studying the program "multitouch.txt" and I want to apply this technology to shrinking and moving pictures. There is quite a bit going on here and what I would like to know is if Touch_x and Touch_y return a -1 if not used then do the Touch commands return 0 - 10 upon touch and would I use something like
x = Touch_x(i)
if x = 0 then 'Single Touch
if x = 1 then 'Two Finger Touch
How about
if i = 0 then 'Single Touch
if i = 1 then 'Two Finger Touch
Yes I have tried these but like I said I am plagued with hate in programming. I would like to show you more code but smartBasic pissed me off and I deleted everything now only to start over again.
You are passing i to Touch_*(i) I think and in multitouch you use a for loop to grab different fingers that touch the screen. I don't think I need the for loop though in order to resize a picture though
How does the two finger touch know when it is shrinking or expanding a picture. The numbers I get show the position of where my fingers are at on the screen and I don't know how to apply this to resizing. "Winter.txt" shows a good example of a picture but taking that program and putting it with multitouch is not working for me. Not asking you to write the program but I do need some help here
Pop up pictures or Easy to use coloring book with crayons
Can you elaborate more on touch x / y in order to help me understand how to move and resize a picture pasted in the graphics view
Thank You
First off I am not a programmer by trade and it is only a hobby that seems to plague me with hate. Maybe that goes for any programmer but I don't know any personally.
Question:
I have been studying the program "multitouch.txt" and I want to apply this technology to shrinking and moving pictures. There is quite a bit going on here and what I would like to know is if Touch_x and Touch_y return a -1 if not used then do the Touch commands return 0 - 10 upon touch and would I use something like
x = Touch_x(i)
if x = 0 then 'Single Touch
if x = 1 then 'Two Finger Touch
How about
if i = 0 then 'Single Touch
if i = 1 then 'Two Finger Touch
Yes I have tried these but like I said I am plagued with hate in programming. I would like to show you more code but smartBasic pissed me off and I deleted everything now only to start over again.
You are passing i to Touch_*(i) I think and in multitouch you use a for loop to grab different fingers that touch the screen. I don't think I need the for loop though in order to resize a picture though
How does the two finger touch know when it is shrinking or expanding a picture. The numbers I get show the position of where my fingers are at on the screen and I don't know how to apply this to resizing. "Winter.txt" shows a good example of a picture but taking that program and putting it with multitouch is not working for me. Not asking you to write the program but I do need some help here
Pop up pictures or Easy to use coloring book with crayons
Can you elaborate more on touch x / y in order to help me understand how to move and resize a picture pasted in the graphics view
Thank You