mirror of
https://github.com/NoelFB/blah.git
synced 2026-11-10 00:35:14 +08:00
adding zero_out to input bindings
This commit is contained in:
1 parent
30d7f2ee66
commit
c204842d2c
2 files changed
+17
No files matched your search
@@ -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