ops... forgot update file :( - fix winport compile
This commit is contained in:
parent
17f285d455
commit
fd69a0e0aa
|
@ -26,14 +26,27 @@
|
||||||
|
|
||||||
#define DIRECTINPUT_VERSION 0x0800
|
#define DIRECTINPUT_VERSION 0x0800
|
||||||
#include "../common.h"
|
#include "../common.h"
|
||||||
#include "..\types.h"
|
#include "../types.h"
|
||||||
#include "directx\dinput.h"
|
#include "directx/dinput.h"
|
||||||
|
|
||||||
#define MAXKEYPAD 15
|
#define MAXKEYPAD 15
|
||||||
|
|
||||||
typedef void (*INPUTPROC)(BOOL, LPSTR);
|
typedef void (*INPUTPROC)(BOOL, LPSTR);
|
||||||
|
|
||||||
class INPUTCLASS
|
class DI_CLASS
|
||||||
|
{
|
||||||
|
friend BOOL CALLBACK EnumCallback(LPCDIDEVICEINSTANCE lpddi, LPVOID pvRef);
|
||||||
|
friend BOOL CALLBACK EnumObjects(const DIDEVICEOBJECTINSTANCE* pdidoi,VOID* pContext);
|
||||||
|
public:
|
||||||
|
char JoystickName[255];
|
||||||
|
BOOL Feedback;
|
||||||
|
LPDIRECTINPUTDEVICE8 EnumDevices(LPDIRECTINPUT8 pDI);
|
||||||
|
protected:
|
||||||
|
BOOL CALLBACK EnumCallback(LPCDIDEVICEINSTANCE lpddi, LPVOID pvRef);
|
||||||
|
BOOL CALLBACK EnumObjects(const DIDEVICEOBJECTINSTANCE* pdidoi,VOID* pContext);
|
||||||
|
};
|
||||||
|
|
||||||
|
class INPUTCLASS : private DI_CLASS
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
HWND hParentWnd;
|
HWND hParentWnd;
|
||||||
|
@ -44,6 +57,7 @@ private:
|
||||||
LPDIRECTINPUTDEVICE8 pKeyboard;
|
LPDIRECTINPUTDEVICE8 pKeyboard;
|
||||||
LPDIRECTINPUTDEVICE8 pJoystick;
|
LPDIRECTINPUTDEVICE8 pJoystick;
|
||||||
DIDEVCAPS DIJoycap;
|
DIDEVCAPS DIJoycap;
|
||||||
|
LPDIRECTINPUTEFFECT pEffect;
|
||||||
|
|
||||||
INPUTPROC inputProc;
|
INPUTPROC inputProc;
|
||||||
|
|
||||||
|
@ -52,6 +66,7 @@ public:
|
||||||
~INPUTCLASS();
|
~INPUTCLASS();
|
||||||
BOOL Init(HWND hParentWnd, INPUTPROC inputProc);
|
BOOL Init(HWND hParentWnd, INPUTPROC inputProc);
|
||||||
BOOL JoystickEnabled();
|
BOOL JoystickEnabled();
|
||||||
|
void JoystickFeedback(BOOL on);
|
||||||
void process();
|
void process();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue