www.pudn.com > 3D_Tank.rar > Input.h


#ifndef __INPUT_H__ 
#define __INPUT_H__ 
 
#include  
#include "ComPtr.h" 
 
class CInput 
{ 
public: 
	CInput(); 
	~CInput(); 
	VOID InitKeyboardAndMouse(HWND hwnd, HINSTANCE instance); 
	VOID GetKeyboardInput(); 
	VOID GetMouseInput(); 
 
	BYTE			m_KeyboardState[256]; 
	DIMOUSESTATE	m_MouseState; 
 
private: 
    CComPtr	m_Keyboard;		//键盘接口 
	CComPtr	m_Mouse;		//鼠标接口 
 
}; 
 
#endif	//Input.h