From af38fe480398435e95305192832e6e04b92a43cf Mon Sep 17 00:00:00 2001 From: david Date: Sat, 1 Mar 2003 21:29:31 +0000 Subject: [PATCH] Don't allow this subsystem to be suspended. --- src/Input/input.cxx | 24 +++++++++++++++--------- src/Input/input.hxx | 5 +++-- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 03f90c2f9..999cf1278 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -194,24 +194,30 @@ FGInput::init () glutPassiveMotionFunc (GLUTmotion); } +void +FGInput::update (double dt) +{ + _update_keyboard(); + _update_joystick(); + _update_mouse(); +} + void -FGInput::bind () +FGInput::suspend () { - // no op + // NO-OP } void -FGInput::unbind () +FGInput::resume () { - // no op + // NO-OP } -void -FGInput::update (double dt) +bool +FGInput::is_suspended () const { - _update_keyboard(); - _update_joystick(); - _update_mouse(); + return false; } void diff --git a/src/Input/input.hxx b/src/Input/input.hxx index 6730a3689..d8a4eae13 100644 --- a/src/Input/input.hxx +++ b/src/Input/input.hxx @@ -194,9 +194,10 @@ public: // Implementation of FGSubsystem. // virtual void init (); - virtual void bind (); - virtual void unbind (); virtual void update (double dt); + virtual void suspend (); + virtual void resume (); + virtual bool is_suspended () const; /** -- 2.39.5