X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInput%2Finput.cxx;h=06122defdc0dd2380a1306ddd1e379d2740c3bca;hb=ab381e5c013292935c598dbe80bdd092bcbdd3ff;hp=f35c4ab295ee426735a692113fb4d4f56083335f;hpb=db7b3ec096ddfe3c51cbd9b1aafe1e0b0e186ceb;p=flightgear.git diff --git a/src/Input/input.cxx b/src/Input/input.cxx index f35c4ab29..06122defd 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -55,15 +55,8 @@ #include #include -#ifndef FG_OLD_WEATHER -# include -#else -# include -#endif - #include
#include
-#include
#include "input.hxx" @@ -103,8 +96,8 @@ FGBinding::FGBinding (const SGPropertyNode * node) FGBinding::~FGBinding () { - delete _arg; // Delete the saved arguments - delete _command_state; // Delete the saved command state +// delete _arg; // Delete the saved arguments +// delete _command_state; // Delete the saved command state } void @@ -204,7 +197,7 @@ FGInput::unbind () } void -FGInput::update () +FGInput::update (int dt) { _update_keyboard(); _update_joystick(); @@ -667,9 +660,9 @@ FGInput::axis::axis () FGInput::axis::~axis () { - for (int i = 0; i < FG_MOD_MAX; i++) - for (unsigned int j = 0; i < bindings[i].size(); j++) - delete bindings[i][j]; +// for (int i = 0; i < FG_MOD_MAX; i++) +// for (int j = 0; i < bindings[i].size(); j++) +// delete bindings[i][j]; } @@ -684,9 +677,9 @@ FGInput::joystick::joystick () FGInput::joystick::~joystick () { - delete js; - delete[] axes; - delete[] buttons; +// delete js; +// delete[] axes; +// delete[] buttons; }