Clang-format against isleapp.cpp

This commit is contained in:
SnepOMatic (Rhew) 2025-11-13 10:09:09 +00:00
parent 957d53dc17
commit 54533ed1f5

View File

@ -66,9 +66,10 @@
#endif #endif
#ifdef __SWITCH__ #ifdef __SWITCH__
#include <switch.h>
#include "switch/filesys.h"
#include "switch/config.h" #include "switch/config.h"
#include "switch/filesys.h"
#include <switch.h>
#endif #endif
#ifdef WINDOWS_STORE #ifdef WINDOWS_STORE
@ -837,17 +838,17 @@ SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event)
} }
} }
else if (event->user.type == g_legoSdlEvents.m_gameEvent) { else if (event->user.type == g_legoSdlEvents.m_gameEvent) {
auto rumble = [](float p_strength, float p_lowFrequencyRumble, float p_highFrequencyRumble, MxU32 p_milliseconds auto rumble =
) { [](float p_strength, float p_lowFrequencyRumble, float p_highFrequencyRumble, MxU32 p_milliseconds) {
if (g_isle->GetHaptic() && if (g_isle->GetHaptic() &&
!InputManager() !InputManager()
->HandleRumbleEvent(p_strength, p_lowFrequencyRumble, p_highFrequencyRumble, p_milliseconds)) { ->HandleRumbleEvent(p_strength, p_lowFrequencyRumble, p_highFrequencyRumble, p_milliseconds)) {
// Platform-specific handling // Platform-specific handling
#ifdef __EMSCRIPTEN__ #ifdef __EMSCRIPTEN__
Emscripten_HandleRumbleEvent(p_lowFrequencyRumble, p_highFrequencyRumble, p_milliseconds); Emscripten_HandleRumbleEvent(p_lowFrequencyRumble, p_highFrequencyRumble, p_milliseconds);
#endif #endif
} }
}; };
switch (event->user.code) { switch (event->user.code) {
case e_hitActor: case e_hitActor: