| 506 | } |
| 507 | |
| 508 | void Mapping::InsertEventMapping(BtnEvent evt, OnEventAction action) { |
| 509 | auto existingActions = eventMapping.find(evt); |
| 510 | |
| 511 | if (existingActions == eventMapping.end()) { |
| 512 | eventMapping[evt] = action; |
| 513 | } else { |
| 514 | // Chain with already existing mapping, if any |
| 515 | eventMapping[evt] = bind(&RunBothActions, placeholders::_1, existingActions->second, action); |
| 516 | } |
| 517 | } |
| 518 | |
| 519 | bool Mapping::AddMapping(KeyCode key, EventModifier evtMod, ActionModifier actMod) |
| 520 | { |
nothing calls this directly
no outgoing calls
no test coverage detected