From: David M. <da...@me...> - 2001-05-26 13:40:39
|
I'm planning to migrate the joystick code to the new FGInput module this weekend. Part of the change will involve renaming the properties. Here's what we have right now: /input/js0/axis0/* /input/js0/axis1/* /input/js0/button0/* /input/js0/button1/* etc. These will change to /input/joysticks/js[0]/axis[0] /input/joysticks/js[0]/axis[1] /input/joysticks/js[0]/button[0] /input/joysticks/js[0]/button[1] The extra path element is necessary so that we can easily create a separate $FG_ROOT/joysticks.xml file and so that the joystick properties are all grouped. Note the similarity to the new key binding scheme already in CVS: /input/keyboard/key[0]/code etc. (see $FG_ROOT/keyboard.xml for examples). While we're here, is "joysticks" OK with everyone, or would you prefer something more generic like "game-controllers" (too long?) or just "controllers" (too confusing?); after all, a game pad, yoke, or pedals will also show up here. Apologies to Tony Peden, who (I notice) has just announced his new, eagerly-awaited joystick config program. I hope that the new property names will require him to change only a couple of lines of code. All the best, David -- David Megginson da...@me... |