X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInput%2FFGJoystickInput.hxx;h=1ab5a6f59ed5d82a0925319f80542cc4660ae97f;hb=f6207d5cb8eeb2ed83e1873dd2f621785832a3f3;hp=ef1530ec025497194ce8559381abc70efe8bde27;hpb=aea9c750f3f839817f8dcbdd7bc6bb4f81b97836;p=flightgear.git diff --git a/src/Input/FGJoystickInput.hxx b/src/Input/FGJoystickInput.hxx index ef1530ec0..1ab5a6f59 100644 --- a/src/Input/FGJoystickInput.hxx +++ b/src/Input/FGJoystickInput.hxx @@ -25,7 +25,7 @@ #ifndef _FGJOYSTICKINPUT_HXX #define _FGJOYSTICKINPUT_HXX -#ifndef __cplusplus +#ifndef __cplusplus # error This library requires C++ #endif @@ -44,6 +44,7 @@ public: virtual void init(); virtual void postinit(); + virtual void reinit(); virtual void update( double dt ); static const int MAX_JOYSTICKS = 10; @@ -51,6 +52,9 @@ public: static const int MAX_JOYSTICK_BUTTONS = 32; private: + void _remove(bool all); + SGPropertyNode_ptr status_node; + /** * Settings for a single joystick axis. */ @@ -80,6 +84,7 @@ private: int nbuttons; axis * axes; FGButton * buttons; + bool predefined; }; joystick bindings[MAX_JOYSTICKS];