⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dinput.h

📁 DirectX 封装
💻 H
字号:
// DInPut.h: interface for the DInPut class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DINPUT_H__3D0E9080_66B7_11D4_A6A7_0000215A011E__INCLUDED_)
#define AFX_DINPUT_H__3D0E9080_66B7_11D4_A6A7_0000215A011E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define DIRECTINPUT_VERSION1 1024

#include <Dinput.h>
//#include <dxguid.h>

class DInPut  
{
public:
	void DI_Term();
	HRESULT InitKeyBoard();
	DInPut();
	BOOL GetKeyDown(int Key);
	virtual ~DInPut();
public:
	LPDIRECTINPUT g_lpdi;
	LPDIRECTINPUTDEVICE g_lpDIDevice;
};

#endif // !defined(AFX_DINPUT_H__3D0E9080_66B7_11D4_A6A7_0000215A011E__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -