剥离 HSI_Sevenocean_EF3 工程
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
// No MFC
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
//#define _WIN32_WINNT _WIN32_WINNT_WIN7
|
||||
// We need the Windows Header and the XInput Header
|
||||
//#include <windows.h>
|
||||
//#include <XInput.h>
|
||||
|
||||
|
||||
//#pragma comment(lib, "xinput1_3.lib")
|
||||
// XBOX Controller Class Definition
|
||||
class CXDirectXInput
|
||||
{
|
||||
private:
|
||||
// XINPUT_STATE _controllerState;
|
||||
int _controllerNum;
|
||||
public:
|
||||
CXDirectXInput();
|
||||
~CXDirectXInput();
|
||||
HRESULT InitDirectInput();
|
||||
VOID FreeDirectInput();
|
||||
HRESULT UpdateInputState();
|
||||
HRESULT SetupForIsXInputDevice();
|
||||
void Vibrate(int leftVal = 0, int rightVal = 0);
|
||||
bool IsXInputDevice( const GUID* pGuidProductFromDirectInput );
|
||||
void CleanupForIsXInputDevice();
|
||||
DIJOYSTATE2 GetState();
|
||||
bool GetState(DIJOYSTATE2 &joyState);
|
||||
};
|
||||
Reference in New Issue
Block a user