#ifndef MSP_GBASE_CONTROL_H_
#define MSP_GBASE_CONTROL_H_
+#include <string>
#include <sigc++/signal.h>
#include <sigc++/trackable.h>
void Hub::button_press(unsigned btn, unsigned index)
{
- set_button_state(index<<12 | btn&0xFFF, true, true);
+ set_button_state((index<<12) | (btn&0xFFF), true, true);
}
void Hub::button_release(unsigned btn, unsigned index)
{
- set_button_state(index<<12 | btn&0xFFF, false, true);
+ set_button_state((index<<12) | (btn&0xFFF), false, true);
}
void Hub::axis_motion(unsigned axis, float value, float, unsigned index)
{
- set_axis_value(index<<12 | axis&0xFFF, value, true);
+ set_axis_value((index<<12) | (axis&0xFFF), value, true);
}
} // namespace Input