X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finput%2Fcontrol.h;fp=source%2Finput%2Fcontrol.h;h=dcf7bf341047e71249440ba6114738cce367af96;hb=294c354ae3b1f26887c37f866f082e52c08d80f1;hp=7a4fd0e0a4ddbf6bd384b317f35e475b9719d6f9;hpb=2ed9d7a0a96638bdf0614c1cf858719e7ced40d3;p=libs%2Fgui.git diff --git a/source/input/control.h b/source/input/control.h index 7a4fd0e..dcf7bf3 100644 --- a/source/input/control.h +++ b/source/input/control.h @@ -25,11 +25,11 @@ different types of controls in a uniform way. */ struct ControlSource { - Device *dev; - ControlSrcType type; - unsigned index; + Device *dev = 0; + ControlSrcType type = NONE; + unsigned index = 0; - ControlSource(); + ControlSource() = default; ControlSource(Device &, ControlSrcType, unsigned); std::string str() const; }; @@ -55,13 +55,13 @@ public: protected: ControlSource src; - Device *capture_dev; - BinaryControl *activator; - float origin; - bool rising_edge; - bool falling_edge; + Device *capture_dev = 0; + BinaryControl *activator = 0; + float origin = 0.0f; + bool rising_edge = false; + bool falling_edge = false; - Control(); + Control() = default; Control(const ControlSource &); Control(Device &, ControlSrcType, unsigned); public: