Central rotation
This commit is contained in:
parent
6e49719da5
commit
82808288c0
2 changed files with 6 additions and 3 deletions
|
@ -9,6 +9,8 @@
|
|||
#include "public.h"
|
||||
#include "vjoyinterface.h"
|
||||
|
||||
#define JOY_MIDDLE (128 * 128)
|
||||
|
||||
extern int ContPovNumber;
|
||||
extern UINT iInterface;
|
||||
extern BOOL ContinuousPOV;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue