mrinputmanager.h

来自「Games programming all in one code chapte」· C头文件 代码 · 共 38 行

H
38
字号
 /* 'mrInputManager.h' */

 /* Mirus base types header */
#include "mrDatatypes.h"
 /* Mirus error definitions header */
#include "mrError.h"
 /* Windows header file */
#include <windows.h>
 /* Direct Music header file */
#include <dinput.h>
/* Assert header file */
#include <assert.h> 

 /* Include this file only once */
#pragma once

 /* Mirus Input Manager class */
class mrInputManager
{
protected:
  /* DirectInput objects */
 LPDIRECTINPUT8         m_lpkDInput;

  /* Singleton */
 static mrInputManager * m_pkSingleton;

public:
  /* Constructors / Destructor */
 mrInputManager (void);
 ~mrInputManager (void);

  /* Input devices manipulation routines */
 mrError32 Init (HINSTANCE hInstance);
 LPDIRECTINPUT8 GetInput (void);

  /* Singleton */
 static mrInputManager * GetSingleton (void);
};

⌨️ 快捷键说明

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