ef7b8c2c9e
The volume slider is now the Z axis and the touchpad (if configured like a joystick) is more accurate. If the touchpad is lifted off of, then the RX and RY axis will center (like taking your thumb off a real joystick)
30 lines
560 B
C
30 lines
560 B
C
#pragma once
|
|
|
|
#ifndef WINVER
|
|
#define WINVER 0x0500
|
|
#endif
|
|
|
|
#include <windows.h>
|
|
|
|
#include "public.h"
|
|
#include "vjoyinterface.h"
|
|
|
|
#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
|
|
|
|
#define joyButtons iReport.lButtons
|
|
|
|
#define JOY_MIDDLE (128 * 128)
|
|
|
|
extern int ContPovNumber;
|
|
extern UINT iInterface;
|
|
//extern BOOL ContinuousPOV;
|
|
|
|
extern JOYSTICK_POSITION iReport;
|
|
|
|
BOOL updateJoystick(void);
|