Skip to content

Commit

Permalink
We don't need to include dinput.h anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Aug 3, 2018
1 parent d18ab8b commit cf7eea6
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/Layers/xrRenderPC_R1/FStaticRender_RenderTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ BOOL CRenderTarget::Perform()
(frame_distort == (Device.dwFrame - 1)));
}

#include <dinput.h>
#define SHOW(a) Log(#a, a);
#define SHOWX(a) Msg("%s %x", #a, a);
void CRenderTarget::Begin()
Expand Down
1 change: 0 additions & 1 deletion src/editors/ActorEditor/stdafx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#pragma comment(lib, "xrCoreB.lib")
#pragma comment(lib, "xrSoundB.lib")

#pragma comment(lib, "dinputB.lib")
#pragma comment(lib, "freeimageB.lib")
//#pragma comment(lib,"d3d9.lib")
#pragma comment(lib, "dxtB.lib")
Expand Down
2 changes: 0 additions & 2 deletions src/editors/ActorEditor/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#define O_SEQUENTIAL 0
#endif

#define DIRECTINPUT_VERSION 0x0800

#define R_R1 1
#define R_R2 2
Expand Down Expand Up @@ -91,7 +90,6 @@ DEFINE_VECTOR(ListItem*, ListItemsVec, ListItemsIt);
#include <d3d9.h>
#include <d3dx9.h>
#include "Layers/xrRender/xrD3dDefs.h"
#include <dinput.h>
#include <dsound.h>

// some user components
Expand Down
1 change: 0 additions & 1 deletion src/editors/ECore/guid.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#pragma hdrstop

#define INITGUID
#include <dinput.h>
2 changes: 0 additions & 2 deletions src/editors/ECore/stdafx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// external dependencies

#define INITGUID
#include <dinput.h>

#ifndef _ECOREB
#pragma comment(lib, "xrECoreB.lib")
Expand All @@ -15,7 +14,6 @@
#pragma comment(lib, "xrCoreB.lib")
#pragma comment(lib, "xrSoundB.lib")

#pragma comment(lib, "dinput8B.lib")
#pragma comment(lib, "freeimageB.lib")
//#pragma comment(lib,"d3d9.lib")
#pragma comment(lib, "dxtB.lib")
Expand Down
2 changes: 0 additions & 2 deletions src/editors/ECore/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#define O_SEQUENTIAL 0
#endif

#define DIRECTINPUT_VERSION 0x0800

#define R_R1 1
#define R_R2 2
Expand Down Expand Up @@ -132,7 +131,6 @@ DEFINE_VECTOR(ListItem*, ListItemsVec, ListItemsIt);
#include <d3dx9.h>
#include "Layers/xrRender/xrD3dDefs.h"

#include <dinput.h>
//#include <dsound.h>

// some user components
Expand Down
1 change: 0 additions & 1 deletion src/editors/LevelEditor/stdafx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#pragma comment(lib, "xrCoreB.lib")
#pragma comment(lib, "xrSoundB.lib")

#pragma comment(lib, "dinputB.lib")
#pragma comment(lib, "freeimageB.lib")
//#pragma comment(lib,"d3d9.lib")
#pragma comment(lib, "dxtB.lib")
Expand Down
2 changes: 0 additions & 2 deletions src/editors/LevelEditor/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#define O_SEQUENTIAL 0
#endif

#define DIRECTINPUT_VERSION 0x0800

#define R_R1 1
#define R_R2 2
Expand Down Expand Up @@ -93,7 +92,6 @@ DEFINE_VECTOR(ListItem*, ListItemsVec, ListItemsIt);
#include <d3d9.h>
#include <d3dx9.h>
#include "Layers/xrRender/xrD3dDefs.h"
#include <dinput.h>
#include <dsound.h>

// some user components
Expand Down
1 change: 0 additions & 1 deletion src/editors/ParticleEditor/stdafx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#pragma comment(lib, "xrCoreB.lib")
#pragma comment(lib, "xrSoundB.lib")

#pragma comment(lib, "dinputB.lib")
#pragma comment(lib, "freeimageB.lib")
//#pragma comment(lib,"d3d9.lib")
#pragma comment(lib, "dxtB.lib")
Expand Down
2 changes: 0 additions & 2 deletions src/editors/ParticleEditor/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define O_SEQUENTIAL 0
#endif

#define DIRECTINPUT_VERSION 0x0800

#define R_R1 1
#define R_R2 2
Expand Down Expand Up @@ -99,7 +98,6 @@ DEFINE_VECTOR(ListItem*, ListItemsVec, ListItemsIt);
#include <d3d9.h>
#include <d3dx9.h>
#include "Layers/xrRender/xrD3DDefs.h"
#include <dinput.h>
#include <dsound.h>

// some user components
Expand Down
1 change: 0 additions & 1 deletion src/editors/ShaderEditor/stdafx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#pragma comment(lib, "xrCoreB.lib")
#pragma comment(lib, "xrSoundB.lib")

#pragma comment(lib, "dinputB.lib")
#pragma comment(lib, "freeimageB.lib")
//#pragma comment(lib,"d3d9.lib")
#pragma comment(lib, "dxtB.lib")
Expand Down
2 changes: 0 additions & 2 deletions src/editors/ShaderEditor/stdafx.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#define O_SEQUENTIAL 0
#endif

#define DIRECTINPUT_VERSION 0x0800

#define R_R1 1
#define R_R2 2
Expand Down Expand Up @@ -90,7 +89,6 @@ DEFINE_VECTOR(ListItem*, ListItemsVec, ListItemsIt);
#include <d3d9.h>
#include <d3dx9.h>
#include "Layers/xrRender/xrD3DDefs.h"
#include <dinput.h>
#include <dsound.h>

// some user components
Expand Down
1 change: 0 additions & 1 deletion src/xrGame/key_binding_registrator_script.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "pch_script.h"
#include <dinput.h>
#include "xr_level_controller.h"
#include "xrScriptEngine/ScriptExporter.hpp"

Expand Down
4 changes: 2 additions & 2 deletions src/xrGame/ui/UIButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class CUIButton : public CUIStatic
// Поведение кнопки как переключателя реализовано пока только в режиме NORMAL_PRESS
void SetButtonAsSwitch(bool bAsSwitch) { m_bIsSwitch = bAsSwitch; }
// Работа с акселератором
// Код акселератора берется из файла dinput.h, из DirectX SDK.
// Например: кнопка A - код 0x1E(DIK_A)
// Код акселератора берётся из файла SDL_scancode.h, из SDL2.
// Например: кнопка A - код 4 (SDL_SCANCODE_A)
void SetAccelerator(int iAccel, int idx);
const int GetAccelerator(int idx) const;
bool IsAccelerator(int iAccel) const;
Expand Down

0 comments on commit cf7eea6

Please sign in to comment.