diff options
author | Kent Mein <mein@cs.umn.edu> | 2006-01-30 22:59:33 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2006-01-30 22:59:33 +0300 |
commit | 8e9222ec217ab98980ffd75cd14387a062b46c9a (patch) | |
tree | ae31e42d4c2af0725486263cd70b1f7720606c96 /source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp | |
parent | ed81ff405fc6f0b459c368107343962502c99e37 (diff) |
More simple fixes to cleanup warnings and what not:
extern/bullet/BulletDynamics/ConstraintSolver/SimpleConstraintSolver.h
added newline at end of file.
intern/boolop/intern/BOP_Face2Face.cpp
fixed indentation and had nested declarations of a varible i used
for multiple for loops, changed it to just one declaration.
source/blender/blenkernel/bad_level_call_stubs/stubs.c
added prototypes and a couple other fixes.
source/blender/include/BDR_drawobject.h
source/blender/include/BSE_node.h
source/blender/include/butspace.h
source/blender/render/extern/include/RE_shader_ext.h
added struct definitions
source/blender/src/editmesh_mods.c
source/gameengine/Ketsji/KX_BlenderMaterial.cpp
source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp
source/gameengine/Ketsji/KX_RaySensor.cpp
removed unused variables;
source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
changed format of case statements to avoid warnings in gcc.
Kent
Diffstat (limited to 'source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp')
-rw-r--r-- | source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp b/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp index 776aab59553..071301514fb 100644 --- a/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp +++ b/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp @@ -79,12 +79,24 @@ void SCA_Joystick::HandleEvents() { switch(m_private->m_event.type) { - case SDL_JOYAXISMOTION: {HANDLE_AXISMOTION(OnAxisMotion);break;} - case SDL_JOYHATMOTION: {HANDLE_HATMOTION(OnHatMotion); break;} - case SDL_JOYBUTTONUP: {HANDLE_BUTTONUP(OnButtonUp); break;} - case SDL_JOYBUTTONDOWN: {HANDLE_BUTTONDOWN(OnButtonDown);break;} - case SDL_JOYBALLMOTION: {HANDLE_BALLMOTION(OnBallMotion);break;} - default: {HANDLE_NOEVENT(OnNothing); break;} + case SDL_JOYAXISMOTION: + HANDLE_AXISMOTION(OnAxisMotion); + break; + case SDL_JOYHATMOTION: + HANDLE_HATMOTION(OnHatMotion); + break; + case SDL_JOYBUTTONUP: + HANDLE_BUTTONUP(OnButtonUp); + break; + case SDL_JOYBUTTONDOWN: + HANDLE_BUTTONDOWN(OnButtonDown); + break; + case SDL_JOYBALLMOTION: + HANDLE_BALLMOTION(OnBallMotion); + break; + default: + HANDLE_NOEVENT(OnNothing); + break; } } } |