summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-02-16 15:30:18 -0500
committerLioncash <mathew1800@gmail.com>2014-02-16 20:12:05 -0500
commit6c4ee1753aa2b9e620138801b479365b0569317c (patch)
tree1f74492e2d501bb799453b29353ac53d12dc5d94 /Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
parent2a7a94387ca0e096f698c0468307bfe6b1d365d7 (diff)
Fix some vertical alignments
ie. uses spaces for alignment.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
index c4cdae71bc..23d247d704 100644
--- a/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/SDL/SDL.cpp
@@ -319,29 +319,29 @@ bool Joystick::UpdateOutput()
#ifdef USE_SDL_HAPTIC
for (auto &i : m_state_out)
{
- if (i.changed) // if SetState was called on this output
+ if (i.changed) // if SetState was called on this output
{
- if (-1 == i.id) // effect isn't currently uploaded
+ if (-1 == i.id) // effect isn't currently uploaded
{
- if (i.effect.type) // if outputstate is >0 this would be true
+ if (i.effect.type) // if outputstate is >0 this would be true
{
- if ((i.id = SDL_HapticNewEffect(m_haptic, &i.effect)) > -1) // upload the effect
+ if ((i.id = SDL_HapticNewEffect(m_haptic, &i.effect)) > -1) // upload the effect
{
- SDL_HapticRunEffect(m_haptic, i.id, 1); // run the effect
+ SDL_HapticRunEffect(m_haptic, i.id, 1); // run the effect
}
}
}
- else // effect is already uploaded
+ else // effect is already uploaded
{
- if (i.effect.type) // if ouputstate >0
+ if (i.effect.type) // if ouputstate >0
{
SDL_HapticUpdateEffect(m_haptic, i.id, &i.effect); // update the effect
}
else
{
- SDL_HapticStopEffect(m_haptic, i.id); // else, stop and remove the effect
+ SDL_HapticStopEffect(m_haptic, i.id); // else, stop and remove the effect
SDL_HapticDestroyEffect(m_haptic, i.id);
- i.id = -1; // mark it as not uploaded
+ i.id = -1; // mark it as not uploaded
}
}