tufanv Expert Licensed User Longtime User Jan 4, 2015 #1 hello i need to detect finger swipe to right left down and up. Is it possible with b4i ? Ty
ilan Expert Licensed User Longtime User Jan 15, 2015 #21 sorex said: I get that part, so that 20%x is the minimal swipe distance which is not really required? Click to expand... yes it is required because if you put only if x - starx then.. it can be raised only by touching the panel because let say x = 20.125 and startx is by action_down also 20.125 now if i move my finger only 0.001 then it will be raised and in reallity you dont even need to move your finger for that small distance its enough to touch the panel so you can play with the value of the movement (instead of 30% you can write 20%).. but there should be a movement of the finger before it will be raised... Upvote 0
sorex said: I get that part, so that 20%x is the minimal swipe distance which is not really required? Click to expand... yes it is required because if you put only if x - starx then.. it can be raised only by touching the panel because let say x = 20.125 and startx is by action_down also 20.125 now if i move my finger only 0.001 then it will be raised and in reallity you dont even need to move your finger for that small distance its enough to touch the panel so you can play with the value of the movement (instead of 30% you can write 20%).. but there should be a movement of the finger before it will be raised...
S sorex Expert Licensed User Longtime User Jan 15, 2015 #22 Indeed but it depends on the application. In my minigame I calculated the gridbased position on any movement so it was not needed there since you could move an object to the right and left untill releasing your finger. so it was more a keeptouchingswipemove kind of thing. Upvote 0
Indeed but it depends on the application. In my minigame I calculated the gridbased position on any movement so it was not needed there since you could move an object to the right and left untill releasing your finger. so it was more a keeptouchingswipemove kind of thing.
ilan Expert Licensed User Longtime User Jan 15, 2015 #23 sorex said: Indeed but it depends on the application. In my minigame I calculated the gridbased position on any movement so it was not needed there since you could move an object to the right and left untill releasing your finger. so it was more a keeptouchingswipemove kind of thing. Click to expand... ok but in this case you dont need to detect any swipe action from the user you only change the view left/top by action_down and action_move... Upvote 0
sorex said: Indeed but it depends on the application. In my minigame I calculated the gridbased position on any movement so it was not needed there since you could move an object to the right and left untill releasing your finger. so it was more a keeptouchingswipemove kind of thing. Click to expand... ok but in this case you dont need to detect any swipe action from the user you only change the view left/top by action_down and action_move...
S sorex Expert Licensed User Longtime User Jan 15, 2015 #24 right and release too to set the final positioning tween. Upvote 0
klaus Expert Licensed User Longtime User Jan 15, 2015 #25 @sorex For me, to check a swipe needs a minimum swipe distance. In post #13 I said "You might perhaps reduce the 30%x value". I set it to 20%x finding 30%x a bit too high. You can change the value to your feeling. Upvote 0
@sorex For me, to check a swipe needs a minimum swipe distance. In post #13 I said "You might perhaps reduce the 30%x value". I set it to 20%x finding 30%x a bit too high. You can change the value to your feeling.