mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-30 02:39:17 -05:00
Support touch drawing on web
This commit is contained in:
@ -106,7 +106,7 @@ int main(void)
|
|||||||
EndTextureMode();
|
EndTextureMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON))
|
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON) || (GetGestureDetected() == GESTURE_DRAG))
|
||||||
{
|
{
|
||||||
// Paint circle into render texture
|
// Paint circle into render texture
|
||||||
// NOTE: To avoid discontinuous circles, we could store
|
// NOTE: To avoid discontinuous circles, we could store
|
||||||
|
|||||||
Reference in New Issue
Block a user