bool Device::get_button_state(unsigned btn) const
{
- if(btn>buttons.size())
+ if(btn>=buttons.size())
return false;
return buttons[btn];
float Device::get_axis_value(unsigned axis) const
{
- if(axis>axes.size())
+ if(axis>=axes.size())
return 0;
return axes[axis];