Play-/Source/win32ui/PH_DirectInput.h

29 lines
617 B
C
Raw Normal View History

#ifndef _PH_DIRECTINPUT_H_
#define _PH_DIRECTINPUT_H_
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>
#include "Types.h"
#include "../PadHandler.h"
class CPH_DirectInput : public CPadHandler
{
public:
CPH_DirectInput(HWND);
virtual ~CPH_DirectInput();
void Update();
static FactoryFunction GetFactoryFunction(HWND);
private:
static CPadHandler* PadHandlerFactory(HWND);
void Initialize();
bool TranslateKey(uint32, CPadListener::BUTTON*);
LPDIRECTINPUT8 m_pDI;
LPDIRECTINPUTDEVICE8 m_pKeyboard;
HWND m_hWnd;
};
#endif