mirror of
https://github.com/NoelFB/blah.git
synced 2025-07-18 19:41:52 +08:00
adding zero_out to input bindings
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user