Distributed under the LGPL
*/
+#include <msp/strings/formatter.h>
#include "inputdevice.h"
namespace Msp {
return axes[axis];
}
+std::string Device::get_button_name(unsigned btn) const
+{
+ return format("Button %d", btn);
+}
+
+std::string Device::get_axis_name(unsigned axis) const
+{
+ return format("Axis %d", axis);
+}
+
void Device::set_button_state(unsigned btn, bool state, bool event)
{
if(btn>=buttons.size())