curt [Fri, 29 Jun 2001 03:47:19 +0000 (03:47 +0000)]
- added variable support for the saved command state and for the local
argument copy in FGBinding
- removed redundant FGBinding::_fire internal method
- declared copy constructor for FGBinding
curt [Fri, 29 Jun 2001 03:47:07 +0000 (03:47 +0000)]
- modified FGBinding to keep a local copy of the argument property
node, and to modify that directly for scaling events: that will make
handling joystick axes much more efficient
- modified FGBinding to work with the new command state, so that
commands can save their state (i.e. compiled arguments) from the last
pass
- removed FGBinding::_fire implementation
- implemented FGBinding copy constructor
curt [Tue, 26 Jun 2001 21:59:35 +0000 (21:59 +0000)]
- removed hard-coded bindings for ^G, ^T, ESC, M, T, X, Z, m, p, t, x,
z, F2, F4, and F9 (see keyboard.xml for replacements)
- no longer dump position report to log when paused (CLO: Argh! Gasp! I use
that!)
curt [Tue, 12 Jun 2001 17:52:09 +0000 (17:52 +0000)]
There was a typo in the $fgbase/materials file where an alias was
pointing to a non-existant material name. (This has been fixed.)
The alias code didn't check to see if this condition would occur so it
was putting a 'NULL' entry in the material library which was causing
the crash. It now checks for and skips bad aliases and prints a
warning message.
curt [Tue, 5 Jun 2001 22:12:28 +0000 (22:12 +0000)]
- replace FGBFI::update with fgUpdateProps
- switched to properties for calculating RPM for model selector
- no longer includes bfi.hxx
- no longer includes keyboard.hxx
curt [Tue, 5 Jun 2001 22:11:16 +0000 (22:11 +0000)]
- moved shift-F1 and shift-F2 (load/save) bindings to XML
- moved shift-F3 (reload panel) bindings to XML
- moved shift-F4 (reload prefs) bindings to XML
- moved shift-F5, shift-F6, shift-F7, and shift-F8 (scroll panel) to
XML
- no longer includes Main/bfi.hxx
- added implementations of GLUTkey, GLUTkeyup, GLUTspecialkey, and
GLUTspecialkeyup
curt [Mon, 4 Jun 2001 21:15:23 +0000 (21:15 +0000)]
- make repeatable for keys and joystick buttons default to false
rather than true; it's too confusing for users if keys and buttons
repeat by default (keys weren't anyway, but they were supposed to)
curt [Mon, 4 Jun 2001 21:08:06 +0000 (21:08 +0000)]
- no longer include Joystick/joystick.hxx
- include Input/input.hxx
- register GLUTkeyup and GLUTspecialkeyup with glut
- comment out call to fgJoystickRead
- comment out call to fgJoystickInit
- add call to FGInput::update to replace fgJoystickRead
curt [Mon, 4 Jun 2001 21:07:02 +0000 (21:07 +0000)]
- added FG_MOD_UP to use key-up or button-up as a command modifier;
this way, keyboard buttons can work the same way as joystick buttons
- added declaration for FGBinding::fire(double); this adds a setting
property to the arguments passed to the command, so that it can use
the current axis position as part of its calculations
- added data structures from joystick.cxx
curt [Mon, 4 Jun 2001 21:06:48 +0000 (21:06 +0000)]
- added FGBinding::fire(double) - added support for "mod-up" property
- go back to using index as key code (otherwise, we'll get nasty
surprises when users try to override bindings)
- XML config file now nests bindings inside modifiers
- allow user to specify whether key is repeatable
- removed hard-coded bindings for 'b', ',', and '.'
- added code from joystick.cxx, with the following major changes:
- changed from js0, axis0, button0 to js[0], axis[0], button[0], etc.
- removed factor, offset, etc. since they will be args to command in
binding
- allow multiple bindings, as with key mappings
- allow access to keyboard modifier keys for bindings
- include infrastructure for modifiers (only FG_MOD_UP is used so far)
- removed unused 'saturation' property
- temporarily removed capture property and trim code; it will have to
be rewritten to be more generic
- allow modifiers for joystick buttons