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

📄 input.h

📁 c++程序
💻 H
字号:
// Input.h: Schnittstelle f黵 die Klasse CInput.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_INPUT_H__56B69522_A79F_11D1_8F4C_B0A67CC10100__INCLUDED_)
#define AFX_INPUT_H__56B69522_A79F_11D1_8F4C_B0A67CC10100__INCLUDED_

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

#include "Motion.h"

class CInput  
{
public:
	void SetLastTick(DWORD dwLastTick);
	void GetMousePos(unsigned int &iX, unsigned int &iY);
	bool GetMouseButtonState(unsigned int iButton);
	void SetMousePos(unsigned int iX, unsigned int iY);
	bool GetKeyState(unsigned int iKey);
	void SetMouseButtonState(unsigned int iButton, bool bState);
	void SetKeyState(unsigned int iKey, bool bState);
	unsigned int GetMouseSpeed();
	void SetMouseSpeed(unsigned int iMouseSpeed);
	void SetInvertMouse(bool bInvert);
	bool GetInvertMouse();
	void SetMotionClassPointer(CMotion* cMotion);
	CInput();
	virtual ~CInput();
	void HandleMouseInput();
	void HandleKeyboardInput();
private:
	unsigned int m_MouseSpeed;
	bool m_InvertMouse;
	CMotion* m_Motion;
	bool	m_Keys[256];		// Array used for the keyboard routine
	POINT	m_MousePos;			// Position of the cursor
	bool	m_MouseButton[3];	// Has a mouse button been pressed ?
	DWORD   m_dwLastTick;		// Hold last tick
};

#endif // !defined(AFX_INPUT_H__56B69522_A79F_11D1_8F4C_B0A67CC10100__INCLUDED_)

⌨️ 快捷键说明

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