+#include <stdexcept>
#include <sigc++/bind.h>
-#include <msp/core/except.h>
#include "hub.h"
+using namespace std;
+
namespace Msp {
namespace Input {
{
unsigned dev_index = btn>>12;
if(dev_index>=devices.size())
- throw InvalidParameterValue("Button does not exist");
+ throw invalid_argument("Hub::get_button_name");
const Device &dev = *devices[dev_index];
return dev.get_name()+": "+dev.get_button_name(btn&0xFFF);
{
unsigned dev_index = axis>>12;
if(dev_index>=devices.size())
- throw InvalidParameterValue("Axis does not exist");
+ throw invalid_argument("Hub::get_axis_name");
const Device &dev = *devices[dev_index];
return dev.get_name()+": "+dev.get_axis_name(axis&0xFFF);