Central rotation

This commit is contained in:
CTurt 2014-12-19 19:17:25 +00:00
parent 6e49719da5
commit 82808288c0
2 changed files with 6 additions and 3 deletions

View file

@ -9,6 +9,8 @@
#include "public.h"
#include "vjoyinterface.h"
#define JOY_MIDDLE (128 * 128)
extern int ContPovNumber;
extern UINT iInterface;
extern BOOL ContinuousPOV;

View file

@ -15,9 +15,10 @@ BOOL updateJoystick(int x, int y) {
iReport.wAxisX = x;
iReport.wAxisY = y;
iReport.wAxisZ = 128 * 128;
iReport.wAxisZRot = 0;
iReport.wAxisXRot = 0;
iReport.wAxisZ = JOY_MIDDLE;
iReport.wAxisXRot = JOY_MIDDLE;
iReport.wAxisYRot = JOY_MIDDLE;
iReport.wAxisZRot = JOY_MIDDLE;
iReport.lButtons = 0;