mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
This was working in 2.6 but no longer does in current git tree. It appears touch position is only tracked on AMOTION_EVENT_ACTION_[DOWN|UP], which only registers the initial touch on the screen. Subsequent movement is not tracked into CORE. Touch position and the Gesture System appears to be updated twice in AndroidInputCallback in what looks like perhaps a copy paste error (code is identical) with the exception of tracking AMOTION_EVENT_ACTION_UP in the 2nd copy of the code (but this is not necessary to track). If you need to track the first touch or release touch position, you can do so with checking IsMouseButton[Pressed|Released] on the same frame. This patch makes it so the touch position is always updated, and merges the duplicated code into 1 singular code path.