adding zero_out to input bindings

This commit is contained in:
Noel
2022-10-22 23:18:52 -07:00
parent 30d7f2ee66
commit c204842d2c
2 changed files with 17 additions and 0 deletions

View File

@ -583,6 +583,14 @@ ButtonBinding& ButtonBinding::set_controller(int index)
return *this;
}
void ButtonBinding::zero_out()
{
m_down = false;
m_pressed = false;
m_released = false;
m_value = 0.0f;
}
void ButtonBinding::clear()
{
keys.clear();