3dscontroller-ng/PC/include/joystick.h

31 lines
560 B
C
Raw Normal View History

2014-12-05 20:03:50 +00:00
#pragma once
#ifndef WINVER
#define WINVER 0x0500
#endif
#include <windows.h>
#include "public.h"
#include "vjoyinterface.h"
2015-03-21 12:28:25 +00:00
#define joyX iReport.wAxisX
#define joyY iReport.wAxisY
#define joyRX iReport.wAxisXRot
#define joyRY iReport.wAxisYRot
//#define joyVolume iReport.wSlider
#define joyVolume iReport.wAxisZ
#define povHat iReport.bHats
2015-03-21 12:28:25 +00:00
#define joyButtons iReport.lButtons
2014-12-19 19:17:25 +00:00
#define JOY_MIDDLE (128 * 128)
2014-12-05 20:03:50 +00:00
extern int ContPovNumber;
extern UINT iInterface;
2015-03-21 12:28:25 +00:00
//extern BOOL ContinuousPOV;
extern JOYSTICK_POSITION iReport;
2014-12-05 20:03:50 +00:00
2015-03-21 12:28:25 +00:00
BOOL updateJoystick(void);