Skip to content

Commit e591b9b

Browse files
eagleivgXottab-DUTY
authored andcommitted
xrGame: remove dinput from includes
1 parent 5c19b76 commit e591b9b

35 files changed

+6
-56
lines changed

src/xrGame/ActorInput.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "stdafx.h"
2-
#include <dinput.h>
32
#include "Actor.h"
43
#include "Torch.h"
54
#include "trade.h"
@@ -469,7 +468,7 @@ void CActor::ActorUse()
469468
if (object)
470469
element = (u16)RQ.element;
471470

472-
if (object && Level().IR_GetKeyState(DIK_LSHIFT))
471+
if (object && Level().IR_GetKeyState(SDL_SCANCODE_LSHIFT))
473472
{
474473
bool b_allow = !!pSettings->line_exist("ph_capture_visuals", object->cNameVisual());
475474
if (b_allow && !character_physics_support()->movement()->PHCapture())
@@ -660,9 +659,9 @@ void CActor::NoClipFly(int cmd)
660659
Fvector cur_pos; // = Position();
661660
cur_pos.set(0, 0, 0);
662661
float scale = 1.0f;
663-
if (pInput->iGetAsyncKeyState(DIK_LSHIFT))
662+
if (pInput->iGetAsyncKeyState(SDL_SCANCODE_LSHIFT))
664663
scale = 0.25f;
665-
else if (pInput->iGetAsyncKeyState(DIK_LMENU))
664+
else if (pInput->iGetAsyncKeyState(SDL_SCANCODE_LGUI))
666665
scale = 4.0f;
667666

668667
switch (cmd)

src/xrGame/Level_input.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "stdafx.h"
2-
#include <dinput.h>
32
#include "xrEngine/XR_IOConsole.h"
43
#include "entity_alive.h"
54
#include "game_sv_single.h"

src/xrGame/MainMenu.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include "xr_Level_controller.h"
99
#include "ui\UITextureMaster.h"
1010
#include "ui\UIXmlInit.h"
11-
#include <dinput.h>
1211
#include <SDL.h>
1312
#include "ui\UIBtnHint.h"
1413
#include "UICursor.h"

src/xrGame/StdAfx.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
//#include <assert.h> // ~440 - but it has no include guard! Perhaps that's intentional?
1414
#include <math.h>
1515
#include <queue> // ~360
16-
#include <dinput.h> // Only ~60, heavy enough to warrant including in pch
1716
#include "luabind/luabind.hpp" // luabind/*, almost 5000
1817
#include "xrServerEntities/smart_cast.h" // a lot
1918
#include "xrScriptEngine/script_space_forward.hpp" // ~765 // XXX: See to it this goes to pch_script

src/xrGame/UIGameCTA.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#include "stdafx.h"
22
#include "UIGameCTA.h"
33

4-
#include <dinput.h>
5-
64
#include "UITeamPanels.h"
75

86
#include "game_cl_base.h"

src/xrGame/UIGameTDM.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include "game_cl_TeamDeathmatch.h"
77

88
#include "ui/TeamInfo.h"
9-
#include <dinput.h>
109

1110
#include "Common/object_broker.h"
1211

src/xrGame/ai/monsters/bloodsucker/bloodsucker.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
#include "ActorCondition.h"
2222
#include "PHDestroyable.h"
2323
#include "CharacterPhysicsSupport.h"
24-
#ifdef DEBUG
25-
#include <dinput.h>
26-
#endif // DEBUG
2724

2825
namespace detail
2926
{

src/xrGame/ai/monsters/controller/controller.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
#include "ai/Monsters/Controller/controller_psy_hit.h"
3535
#include "ai/Monsters/monster_cover_manager.h"
3636

37-
#ifdef _DEBUG
38-
#include <dinput.h>
39-
#endif
40-
4137
const u32 _pmt_psy_attack_delay = 2000;
4238
const float _pmt_psy_attack_min_angle = deg(5);
4339

src/xrGame/ai/monsters/dog/dog.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@
1616
#include "xrAICore/Navigation/ai_object_location.h"
1717
#include "Actor.h"
1818

19-
#ifdef _DEBUG
20-
#include <dinput.h>
21-
#endif
22-
2319
CAI_Dog::CAI_Dog()
2420
{
2521
StateMan = new CStateManagerDog(this);

src/xrGame/ai/monsters/pseudodog/pseudodog.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "ai/monsters/control_movement_base.h"
1111

1212
#ifdef _DEBUG
13-
#include <dinput.h>
1413
#include "xrAICore/Navigation/ai_object_location.h"
1514
#include "level_debug.h"
1615
#include "xrAICore/Navigation/level_graph.h"

0 commit comments

Comments
 (0)