]> git.mxchange.org Git - flightgear.git/commit
Bernie Bright:
authorcurt <curt>
Sun, 25 Aug 2002 20:56:16 +0000 (20:56 +0000)
committercurt <curt>
Sun, 25 Aug 2002 20:56:16 +0000 (20:56 +0000)
commitdf6989a37ac7d864f540d874067d7157446ab6a7
treeda5144dc0ed39d1c8bf5c795e6cb701d527c4476
parent4f00d9a95928b179c5c8b2c3c6786a1c71e88531
Bernie Bright:

Here is a FGIO class derived from FGSubsystem that replaces the fgIOInit()
and fgIOProcess() functions.  The FGIO::update(double delta) doesn't use the
delta argument yet.  I suspect it could be used as a replacement for the
calculated interval value but I'm not familiar enough with that piece of code
just yet.

I've also added two "command properties" to fg_commands.cxx that select the
next or previous view.  Writing any value to these properties triggers the
corresponding action.  As an example I modified my keyboard.xml:

 <key n="118">
  <name>v</name>
  <desc>Next view</desc>
  <binding>
   <command>property-assign</command>
   <property>/command/view/next</property>
   <value type="bool">true</value>
  </binding>
 </key>

 <key n="86">
  <name>V</name>
  <desc>Prev view</desc>
  <binding>
   <command>property-assign</command>
   <property>/command/view/prev</property>
   <value type="bool">true</value>
  </binding>
 </key>

And of course these actions can also be triggered from external scripts via
the props server.
src/GUI/gui_funcs.cxx
src/Main/fg_commands.cxx
src/Main/fg_init.cxx
src/Main/fg_io.cxx
src/Main/fg_io.hxx
src/Main/globals.cxx
src/Main/globals.hxx
src/Main/main.cxx