Mapping Axises

Mapping Axises

Postby Aravan » Sun 30 May, 2010 8:08 am

I've been trying to map all of my Gamepad's keys (Logitech Chillstream) to a PPJoy Virtual Joystick (I'm doing it to just change the functions of some of the keys). I'm using Any instead of Joystick, beacause somehow Joystick doesn't work (whereas Any does). Anyway, this is what I've got so far:
Code: Select all
/* BUTTONS */
PPJoy1.Digital0 = Any1.Button1
PPJoy1.Digital1 = Any1.Button2
PPJoy1.Digital2 = Any1.Button3
PPJoy1.Digital3 = Any1.Button4
PPJoy1.Digital4 = Any1.Button5
PPJoy1.Digital5 = Any1.Button6
PPJoy1.Digital6 = Any1.Select
PPJoy1.Digital7 = Any1.Start
PPJoy1.Digital8 = Any1.Button9
PPJoy1.Digital9 = Any1.Button10
/* D-PAD */
PPJoy1.Digital16 = Any1.DPadUp
PPJoy1.Digital17 = Any1.DPadDown
PPJoy1.Digital18 = Any1.DPadLeft
PPJoy1.Digital19 = Any1.DPadRight

All of the buttons and the entire D-PAD are working flawlessly. The problem is I don't know how to map the two sticks and the triggers (which the system sees an an axis as well) - those are described in the Game Controllers properties as:
X Axis - left thumb stick left & right
Y Axis - left thumb stcik up & down
Z Axis - triggers
X Rotation - right thumb stick left & right
Y Rotation - right thumb stick up & down
I'd REALLY appreciate it if someone told me how to map those sticks. I've been trying for hours now and I really don't have a clue :oops: . Pretty please?
Aravan
 
Posts: 1
Joined: Sun 30 May, 2010 7:52 am

Return to Joysticks and Gamepads

Who is online

Users browsing this forum: No registered users and 1 guest

cron