protected:
std::vector<char> buttons;
std::vector<float> axes;
+ float axis_threshold;
+ float axis_dead_zone;
+ Device() { }
public:
virtual ~Device() { }
- bool get_button_state(unsigned);
- float get_axis_value(unsigned);
+ bool get_button_state(unsigned) const;
+ float get_axis_value(unsigned) const;
+ float get_axis_threshold() const { return axis_threshold; }
protected:
void set_button_state(unsigned, bool, bool);
void set_axis_value(unsigned, float, bool);