| 576 | } |
| 577 | |
| 578 | Maybe<unsigned> Input::bindDown(String const& categoryId, String const& bindId) { |
| 579 | if (auto state = bindStatePtr(categoryId, bindId)) { |
| 580 | if (state->presses) |
| 581 | return state->presses; |
| 582 | } |
| 583 | return {}; |
| 584 | } |
| 585 | |
| 586 | bool Input::bindHeld(String const& categoryId, String const& bindId) { |
| 587 | if (auto state = bindStatePtr(categoryId, bindId)) |