diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-05 16:17:49 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-05 16:17:49 +0200 |
commit | 22b07e0233a29d9633ffa825a79503befaf2e16e (patch) | |
tree | 1d8b06056f8e12197158f5d906319767d3dedda5 /libs/surfaces/mackie/types.h | |
parent | e11ba7b79d68bc1070b170236c22123966d7bcc3 (diff) |
NOOP, remove trailing tabs/whitespace.
Diffstat (limited to 'libs/surfaces/mackie/types.h')
-rw-r--r-- | libs/surfaces/mackie/types.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libs/surfaces/mackie/types.h b/libs/surfaces/mackie/types.h index fd1b225c65..87676ae0f6 100644 --- a/libs/surfaces/mackie/types.h +++ b/libs/surfaces/mackie/types.h @@ -41,19 +41,19 @@ public: LedState (state_t state): _state (state) {} LedState& operator= (state_t s) { _state = s; return *this; } - + bool operator == (const LedState & other) const { return state() == other.state(); } - + bool operator != (const LedState & other) const { return state() != other.state(); } - + state_t state() const { return _state; } - + private: state_t _state; }; @@ -72,27 +72,27 @@ enum ButtonState { neither = -1, release = 0, press = 1 }; struct ControlState { ControlState(): pos(0.0), sign(0), delta(0.0), ticks(0), led_state(off), button_state(neither) {} - + ControlState (LedState ls): pos(0.0), delta(0.0), led_state(ls), button_state(neither) {} - + // Note that this sets both pos and delta to the flt value ControlState (LedState ls, float flt): pos(flt), delta(flt), ticks(0), led_state(ls), button_state(neither) {} ControlState (float flt): pos(flt), delta(flt), ticks(0), led_state(none), button_state(neither) {} ControlState (float flt, unsigned int tcks): pos(flt), delta(flt), ticks(tcks), led_state(none), button_state(neither) {} ControlState (ButtonState bs): pos(0.0), delta(0.0), ticks(0), led_state(none), button_state(bs) {} - + /// For faders. Between 0 and 1. float pos; - + /// For pots. Sign. Either -1 or 1; int sign; /// For pots. Signed value of total movement. Between 0 and 1 float delta; - + /// For pots. Unsigned number of ticks. Usually between 1 and 16. unsigned int ticks; - + LedState led_state; ButtonState button_state; }; |