📄 realtimeinput.h
字号:
#ifndef REAL_TIME_INPUT_H
#define REAL_TIME_INPUT_H
/* disable some warnings */
#pragma warning (disable : 4786)
#include <direct.h>
/* directx headers */
#include <dinput.h>
#pragma comment(lib,"dxguid.lib")
#pragma comment(lib,"dinput8.lib")
/* stl headers */
#include <algorithm>
#include <map>
#include <string>
#include <vector>
/* namespaces */
using namespace std;
/* enumerations */
typedef unsigned char ISModifierState;
typedef unsigned char ISMouseButton;
enum
{
kismsNone = 0x00,
kismsCtrl = 0x01,
kismsAlt = 0x02,
kismsShift = 0x04,
};
enum
{
mouseNone = 0x00,
mouseButton0 = 0x05,
mouseButton1 = 0x06,
mouseButton2 = 0x07,
};
#define _RELEASE(p) if(p != NULL) {p->Release(); p=NULL;}
#define _DELETE(p) if(p != NULL) {delete p; p=NULL;}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -