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
curt [Fri, 1 Jun 2001 17:51:09 +0000 (17:51 +0000)]
- refactored and simplified FGBinding class to use the new command
manager; removed unused getters and setters; track original
command name for use in debugging messages
- removed unused action methods from FGInput
curt [Fri, 1 Jun 2001 17:50:59 +0000 (17:50 +0000)]
- renamed property binding/action to binding/command; most commands now
want binding/property rather than binding/control
- removed hard-coded bindings for F3 (screenshot), Ctrl-S
(autothrottle), v (cycle view) and all of the keypad view-direction
keys; these are now defined in $FG_ROOT/keyboard.xml
- removed unused action method