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

📄 ckeyboard.h

📁 一个2D的赛车游戏 在VC下运行 开发库DIRECTX8.1以上
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -