diff options
author | John Anderson <ardour@semiosix.com> | 2007-07-19 22:07:10 +0000 |
---|---|---|
committer | John Anderson <ardour@semiosix.com> | 2007-07-19 22:07:10 +0000 |
commit | 4c12c98e338dd88e7b05b7e47133f91c3e3bbc06 (patch) | |
tree | b4c58bcba79696bcaf453cff5441d6caff417f85 /libs/surfaces/mackie/types.cc | |
parent | 47add43cd028855cda2292bef9dcde607f948490 (diff) |
Jog Wheel Fun:
- When ffwd/rew is pressed, wheel controls speed
- Zoom button allows jog wheel to zoom
- Scrub button cycles jog from scrub to shuttle to whatever it was before
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2155 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/mackie/types.cc')
-rw-r--r-- | libs/surfaces/mackie/types.cc | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/libs/surfaces/mackie/types.cc b/libs/surfaces/mackie/types.cc index d2818d7340..b9f2e9d488 100644 --- a/libs/surfaces/mackie/types.cc +++ b/libs/surfaces/mackie/types.cc @@ -2,8 +2,28 @@ namespace Mackie { - LedState on( LedState::on ); - LedState off( LedState::off ); - LedState flashing( LedState::flashing ); - LedState none( LedState::none ); +LedState on( LedState::on ); +LedState off( LedState::off ); +LedState flashing( LedState::flashing ); +LedState none( LedState::none ); + +std::ostream & operator << ( std::ostream & os, const ControlState & cs ) +{ + os << "ControlState { "; + os << "pos: " << cs.pos; + os << ", "; + os << "sign: " << cs.sign; + os << ", "; + os << "delta: " << cs.delta; + os << ", "; + os << "ticks: " << cs.ticks; + os << ", "; + os << "led_state: " << cs.led_state.state(); + os << ", "; + os << "button_state: " << cs.button_state; + os << " }"; + + return os; +} + } |