Minor tweaks

This commit is contained in:
raysan5 2021-07-01 21:43:13 +02:00
parent 1fe137db44
commit f81dfce19f
2 changed files with 27 additions and 32 deletions

View file

@ -6288,10 +6288,9 @@ static void *EventThread(void *arg)
if (CORE.Input.Mouse.currentPosition.y > CORE.Window.screen.height/CORE.Input.Mouse.scale.y) CORE.Input.Mouse.currentPosition.y = CORE.Window.screen.height/CORE.Input.Mouse.scale.y;
}
// Gesture update
#if defined(SUPPORT_GESTURES_SYSTEM)
if (gestureUpdate)
{
#if defined(SUPPORT_GESTURES_SYSTEM)
GestureEvent gestureEvent = { 0 };
gestureEvent.pointCount = 0;
@ -6313,8 +6312,8 @@ static void *EventThread(void *arg)
gestureEvent.position[3] = CORE.Input.Touch.position[3];
ProcessGestureEvent(gestureEvent);
#endif
}
#endif
}
WaitTime(5); // Sleep for 5ms to avoid hogging CPU time

View file

@ -371,10 +371,6 @@ static void OnLog(ma_context *pContext, ma_device *pDevice, ma_uint32 logLevel,
static void OnSendAudioDataToDevice(ma_device *pDevice, void *pFramesOut, const void *pFramesInput, ma_uint32 frameCount);
static void MixAudioFrames(float *framesOut, const float *framesIn, ma_uint32 frameCount, float localVolume);
#if defined(SUPPORT_FILEFORMAT_WAV)
static int SaveWAV(Wave wave, const char *fileName); // Save wave data as WAV file
#endif
#if defined(RAUDIO_STANDALONE)
static bool IsFileExtension(const char *fileName, const char *ext); // Check file extension
static const char *GetFileExtension(const char *fileName); // Get pointer to extension for a filename string (includes the dot: .png)