mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Gestures system is automatically Init and Updated
This commit is contained in:
@ -32,7 +32,6 @@ void android_main(struct android_app *app)
|
|||||||
GameScreen currentScreen = LOGO;
|
GameScreen currentScreen = LOGO;
|
||||||
|
|
||||||
InitWindow(screenWidth, screenHeight, app);
|
InitWindow(screenWidth, screenHeight, app);
|
||||||
InitGesturesSystem(app);
|
|
||||||
|
|
||||||
// TODO: Initialize all required variables and load all required data here!
|
// TODO: Initialize all required variables and load all required data here!
|
||||||
|
|
||||||
@ -51,7 +50,7 @@ void android_main(struct android_app *app)
|
|||||||
while (!WindowShouldClose()) // Detect window close button or ESC key
|
while (!WindowShouldClose()) // Detect window close button or ESC key
|
||||||
{
|
{
|
||||||
// Update
|
// Update
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
switch(currentScreen)
|
switch(currentScreen)
|
||||||
{
|
{
|
||||||
case LOGO:
|
case LOGO:
|
||||||
@ -101,8 +100,6 @@ void android_main(struct android_app *app)
|
|||||||
} break;
|
} break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateGestures();
|
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
// Draw
|
// Draw
|
||||||
|
|||||||
Reference in New Issue
Block a user