X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fwindows%2Fgamecontroller_platform.h;fp=source%2Finput%2Fwindows%2Fgamecontroller_platform.h;h=d6ee6c27d4bc2f252acf3bc26d1fb4187f37d30b;hb=294c354ae3b1f26887c37f866f082e52c08d80f1;hp=928ad6770dd3b917f50d823dea17ac2862cbe275;hpb=2ed9d7a0a96638bdf0614c1cf858719e7ced40d3;p=libs%2Fgui.git diff --git a/source/input/windows/gamecontroller_platform.h b/source/input/windows/gamecontroller_platform.h index 928ad67..d6ee6c2 100644 --- a/source/input/windows/gamecontroller_platform.h +++ b/source/input/windows/gamecontroller_platform.h @@ -14,7 +14,7 @@ class GameControllerTimerThread: public Msp::Thread { private: Time::Timer timer; - unsigned n_users; + unsigned n_users = 0; static GameControllerTimerThread *thread; @@ -31,15 +31,13 @@ private: struct GameController::Private { - unsigned index; - unsigned last_packet_number; - IO::Pipe *event_pipe; - Time::Timer::Slot *timer_slot; + unsigned index = 0; + unsigned last_packet_number = 0; + IO::Pipe *event_pipe = 0; + Time::Timer::Slot *timer_slot = 0; static std::vector detected_controllers; - Private(); - bool generate_event(); void update_state(GameController &, const XINPUT_STATE &, bool);