enum ControlSrcType
{
- NONE,
+ NO_SOURCE,
BUTTON,
AXIS_POS,
AXIS_NEG
*/
struct ControlSource
{
- Device *dev = 0;
- ControlSrcType type = NONE;
+ Device *dev = nullptr;
+ ControlSrcType type = NO_SOURCE;
unsigned index = 0;
ControlSource() = default;
protected:
ControlSource src;
- Device *capture_dev = 0;
- BinaryControl *activator = 0;
+ Device *capture_dev = nullptr;
+ BinaryControl *activator = nullptr;
float origin = 0.0f;
bool rising_edge = false;
bool falling_edge = false;