mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-20 14:11:16 +00:00
Clang-format against isleapp.cpp
This commit is contained in:
parent
957d53dc17
commit
54533ed1f5
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user