I need to measure the time, when the user touches the display or view (finger down), not when it comes up.
The click_event fires when the finger leaves (up) not when it starts to touch (down).
I also tried SwiftButton, the swift-animation is in the down-moment, but the event fires only, when up.
The Touch-Event of a panel fires not in the down moment, only about 250 ms later.
(how can I make the Page-Event to fire? (Private pg As Page, pg.Initialize("pg"), but Sub pg_Touch never fires.)
Here the things, I tried with the results: pg_Touch never fires, Panel1_Touch fires about 250 ms later, Panel1_Click and SwiftButton1_Click fires when finger up, not down. I need the down-moment, because the user should beat a rhythm on the display (in B4A it works). Any ideas?
The click_event fires when the finger leaves (up) not when it starts to touch (down).
I also tried SwiftButton, the swift-animation is in the down-moment, but the event fires only, when up.
The Touch-Event of a panel fires not in the down moment, only about 250 ms later.
(how can I make the Page-Event to fire? (Private pg As Page, pg.Initialize("pg"), but Sub pg_Touch never fires.)
Here the things, I tried with the results: pg_Touch never fires, Panel1_Touch fires about 250 ms later, Panel1_Click and SwiftButton1_Click fires when finger up, not down. I need the down-moment, because the user should beat a rhythm on the display (in B4A it works). Any ideas?
B4X:
Sub pg_Touch(Action As Int, X As Float, Y As Float)
Log(Action)
End Sub
Sub Panel1_Touch(Action As Int, X As Float, Y As Float)
Log(Action)
End Sub
Sub Panel1_Click
Log ("Panel1_Click")
End Sub
Sub SwiftButton1_Click
Log ("SwiftButton1_Click")
End Sub