Click here to Skip to main content
15,896,486 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
so i use this drivers:

Interfacing with a Joystick using C#[^]

my problem is that i cant get readings from right analog on my ps2 joystick, i can read only Z rotation. my question is how to read Z axis? Z rotation is used to move left and right, and Z axis should be for moving up and down.
Posted
Updated 28-Nov-15 5:20am
v3

1 solution

solution is very simple. i only change this:


int axisA = state.Rz;
int axisB = state.Rx;
int axisC = state.X;
int axisD = state.Y;

to this:

int axisA = state.Rz;
int axisB = state.Z;
int axisC = state.X;
int axisD = state.Y;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900