Advertisement

Separating pedal input

Started by July 13, 2001 12:45 AM
-1 comments, last by Shabadoo 23 years, 7 months ago
Howdy folks, I've gotten my input class working for joysticks and I want to do a simple car game, my problem is the input from the pedals, one is the +ve y-axis and the other the -ve axis, and i want to be able to tell if one or both pedals are being pressed. At the moment if the accelerator is pushed all the way in, and i press the brake, the program can't tell whether i'm releasing the accelerator or pressing the brake as both cases cause the value reported from the axis to drop. I have noticed that my wheel (MS Precision racing wheel) reports itself as having a z-rotation axis which I was thinking might allow me to separate the inputs, but i can only get intermittent blips of data from that axis. So, if anyone knows how to differentiate between the pedal input for a wheel the help would be appreciated. Shabadoo Edited by - Shabadoo on July 13, 2001 1:52:00 AM

This topic is closed to new replies.

Advertisement