Skip to content

Commit

Permalink
cleanup includes in controls/..
Browse files Browse the repository at this point in the history
  • Loading branch information
pionere committed Dec 5, 2023
1 parent 2b0ddcc commit 014ee6a
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 20 deletions.
2 changes: 0 additions & 2 deletions Source/controls/controller_motion.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

#if HAS_GAMECTRL || HAS_JOYSTICK || HAS_KBCTRL || HAS_DPAD

#include <SDL.h>

#include "./axis_direction.h"
#include "./controller.h"

Expand Down
2 changes: 0 additions & 2 deletions Source/controls/devices/game_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ static_assert(false, "GameController is not supported in SDL1.");

#include <SDL.h>

#include "../defs.h"

#include "../controller_buttons.h"

DEVILUTION_BEGIN_NAMESPACE
Expand Down
2 changes: 0 additions & 2 deletions Source/controls/devices/joystick.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include "utils/sdl2_to_1_2_backports.h"
#endif

#include "../defs.h"

#include "../controller_buttons.h"

DEVILUTION_BEGIN_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion Source/controls/devices/kbcontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Keyboard keys acting like gamepad buttons
#if HAS_KBCTRL
#include <SDL.h>
#include "../defs.h"

#include "../controller_buttons.h"

DEVILUTION_BEGIN_NAMESPACE
Expand Down
3 changes: 0 additions & 3 deletions Source/controls/game_controls.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

#if HAS_GAMECTRL || HAS_JOYSTICK || HAS_KBCTRL || HAS_DPAD

//#include <cstdint>
#include <SDL.h>

#include "./axis_direction.h"
#include "./controller.h"

Expand Down
2 changes: 0 additions & 2 deletions tools/patcher/controls/controller_motion.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

#if HAS_GAMECTRL || HAS_JOYSTICK || HAS_KBCTRL || HAS_DPAD

#include <SDL.h>

#include "./axis_direction.h"
#include "./controller.h"

Expand Down
2 changes: 0 additions & 2 deletions tools/patcher/controls/devices/game_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ static_assert(false, "GameController is not supported in SDL1.");

#include <SDL.h>

#include "../defs.h"

#include "../controller_buttons.h"

DEVILUTION_BEGIN_NAMESPACE
Expand Down
2 changes: 0 additions & 2 deletions tools/patcher/controls/devices/joystick.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include "utils/sdl2_to_1_2_backports.h"
#endif

#include "../defs.h"

#include "../controller_buttons.h"

DEVILUTION_BEGIN_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion tools/patcher/controls/devices/kbcontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Keyboard keys acting like gamepad buttons
#if HAS_KBCTRL
#include <SDL.h>
#include "../defs.h"

#include "../controller_buttons.h"

DEVILUTION_BEGIN_NAMESPACE
Expand Down
3 changes: 0 additions & 3 deletions tools/patcher/controls/game_controls.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

#if HAS_GAMECTRL || HAS_JOYSTICK || HAS_KBCTRL || HAS_DPAD

//#include <cstdint>
#include <SDL.h>

#include "./axis_direction.h"
#include "./controller.h"

Expand Down

0 comments on commit 014ee6a

Please sign in to comment.