¿Touch panel error?

jota

Active Member
Licensed User
Longtime User
I tested two devices and the two I can think of. Using this code the log always returns 0, not detected Activity.ACTION_MOVE now. What can be? thanks


Sub Globals
Dim p As Panel
End Sub
Sub Activity_Create(FirstTime As Boolean)
p.Initialize("p")
Activity.AddView(p,0,0,100%x,100%y)
End Sub
Sub p_Touch (Action As Int, X As Float, Y As Float) As Boolean
Log(Action)
End Sub
 

jota

Active Member
Licensed User
Longtime User
Thank you very much, problem solved. :)

I have programs without putting "return true" worked fine with earlier versions of B4A. Is this a change in version 1.9?
 
Top