summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-11-21 00:14:42 +0100
committerRay <[email protected]>2023-11-21 00:14:42 +0100
commit299cd9b8305a2043c1d4934b1b1c574a204608d0 (patch)
treea2f58130d66bf087d7534fcd930b8973a1684dd1 /src
parentae50bfa2cc569c0f8d5bc4315d39db64005b1b08 (diff)
downloadraylib-299cd9b8305a2043c1d4934b1b1c574a204608d0.tar.gz
raylib-299cd9b8305a2043c1d4934b1b1c574a204608d0.zip
Update rcore.c
Diffstat (limited to 'src')
-rw-r--r--src/rcore.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 45398891..a85b0971 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -2623,8 +2623,9 @@ void PlayAutomationEvent(AutomationEvent event)
{
CORE.Input.Gamepad.axisState[event.params[0]][event.params[1]] = ((float)event.params[2]/32768.0f);
} break;
+ #if defined(SUPPORT_GESTURES_SYSTEM)
case INPUT_GESTURE: GESTURES.current = event.params[0]; break; // param[0]: gesture (enum Gesture) -> rgestures.h: GESTURES.current
-
+ #endif
// Window event
case WINDOW_CLOSE: CORE.Window.shouldClose = true; break;
case WINDOW_MAXIMIZE: MaximizeWindow(); break;
@@ -2632,11 +2633,13 @@ void PlayAutomationEvent(AutomationEvent event)
case WINDOW_RESIZE: SetWindowSize(event.params[0], event.params[1]); break;
// Custom event
+ #if defined(SUPPORT_SCREEN_CAPTURE)
case ACTION_TAKE_SCREENSHOT:
{
TakeScreenshot(TextFormat("screenshot%03i.png", screenshotCounter));
screenshotCounter++;
} break;
+ #endif
case ACTION_SETTARGETFPS: SetTargetFPS(event.params[0]); break;
default: break;
}
@@ -3507,6 +3510,7 @@ static void RecordAutomationEvent(void)
}
//-------------------------------------------------------------------------------------
+#if defined(SUPPORT_GESTURES_SYSTEM)
// Gestures input currentEventList->events recording
//-------------------------------------------------------------------------------------
if (GESTURES.current != GESTURE_NONE)
@@ -3524,6 +3528,7 @@ static void RecordAutomationEvent(void)
if (currentEventList->count == currentEventList->capacity) return; // Security check
}
//-------------------------------------------------------------------------------------
+#endif
// Window events recording
//-------------------------------------------------------------------------------------