ModifierState modifier_state() const { return _modifier_state; }
- Button* button_by_id (ButtonID);
+ boost::shared_ptr<Button> button_by_id (ButtonID);
static std::string button_name_by_id (ButtonID);
void strip_buttons_off ();
void relax () {}
/* map of Buttons by CC */
- typedef std::map<int,Button*> CCButtonMap;
+ typedef std::map<int,boost::shared_ptr<Button> > CCButtonMap;
CCButtonMap cc_button_map;
/* map of Buttons by ButtonID */
- typedef std::map<ButtonID,Button*> IDButtonMap;
+ typedef std::map<ButtonID,boost::shared_ptr<Button> > IDButtonMap;
IDButtonMap id_button_map;
std::set<ButtonID> buttons_down;
std::set<ButtonID> consumed;
bool button_long_press_timeout (ButtonID id);
- void start_press_timeout (Button&, ButtonID);
+ void start_press_timeout (boost::shared_ptr<Button>, ButtonID);
void init_buttons (bool startup);
void init_touch_strip ();
/* map of Pads by note number (the "fixed" note number sent by the
* hardware, not the note number generated if the pad is touched)
*/
- typedef std::map<int,Pad*> NNPadMap;
+ typedef std::map<int,boost::shared_ptr<Pad> > NNPadMap;
NNPadMap nn_pad_map;
/* map of Pads by note number they generate (their "filtered" value)
*/
- typedef std::multimap<int,Pad*> FNPadMap;
+ typedef std::multimap<int,boost::shared_ptr<Pad> > FNPadMap;
FNPadMap fn_pad_map;
void set_button_color (ButtonID, uint8_t color_index);