ckeyboard.h

来自「Visual C++ 游戏开发与设计实例 源代码(所有)」· C头文件 代码 · 共 47 行

H
47
字号
// CMAIN LIB - APPLICATION AND DIRECT WRAPPER
//
// Written by Mauricio Teichmann Ritter
//
// Copyright (C) 2002, Brazil. All rights reserved.
// 
//

// cKeyboard.h: interface for the cKeyboard class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CKEYBOARD_H__53F59151_5308_422D_AA8F_B756973E422E__INCLUDED_)
#define AFX_CKEYBOARD_H__53F59151_5308_422D_AA8F_B756973E422E__INCLUDED_

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

#ifndef DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION 0x80
#endif

#include "stdafx.h"
#include "cInputDevice.h"

#include <dinput.h>

class cKeyboard : cInputDevice
{
private:
	static LPDIRECTINPUTDEVICE8	m_lpDIKeyboard; 
    static char*				m_KbdBuffer; 
 
public:
	BOOL CheckKey(const int cKey);
	void Process();
	void Destroy();
	BOOL Create();
	cKeyboard();
	virtual ~cKeyboard();

};


#endif // !defined(AFX_CKEYBOARD_H__53F59151_5308_422D_AA8F_B756973E422E__INCLUDED_)

⌨️ 快捷键说明

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