* Stephen Miller -- Friday 06 January 2006 20:38: > I have an older Flightstick type: 3-axis, 4-button, with a hat, [...] The > problem is, the hat is not an independent set of switches, but only applies > the 4 buttons in various combinations [...] > 2) If more than one switch is actuated, I want to create a new set of > definitions, depending on which buttons are in use. [...]
Look into one of the driver files that come with fgfs for ideas, especially this one: $FG_ROOT/Input/Joysticks/Saitek/Cyborg-Gold-3d-USB.xml You can add a function to each of your head buttons that sets a bit in a global variable, and then check this variable whenever a hat button is pressed. m. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users