| 338 | } |
| 339 | |
| 340 | Input::binding_t Input::input(const char* binding) const { |
| 341 | if (multiplayer != SINGLE && player != 0) { |
| 342 | return inputs[0].input(binding); |
| 343 | } |
| 344 | auto b = bindings.find(binding); |
| 345 | return b != bindings.end() ? (*b).second : Input::binding_t(); |
| 346 | } |
| 347 | |
| 348 | Input::ControllerType Input::getControllerType() const { |
| 349 | return getControllerType(player); |
no test coverage detected