-#include <msp/strings/formatter.h>
+#include <msp/strings/format.h>
#include "device.h"
namespace Msp {
namespace Input {
+Device::Device()
+{ }
+
+Device::~Device()
+{ }
+
bool Device::get_button_state(unsigned btn) const
{
if(btn>buttons.size())
if(state!=buttons[btn])
{
- buttons[btn]=state;
+ buttons[btn] = state;
if(event)
{
if(value!=axes[axis])
{
- float old=axes[axis];
- axes[axis]=value;
+ float old = axes[axis];
+ axes[axis] = value;
if(event)
signal_axis_motion.emit(axis, value, value-old);