| 57 | // <- |
| 58 | |
| 59 | void System::processAxisEvent(const AxisEvent& p_Event) |
| 60 | { |
| 61 | const float axisValue = p_Event.value; |
| 62 | if (_axisStates[p_Event.axis] != axisValue) |
| 63 | { |
| 64 | _axisStates[p_Event.axis] = axisValue; |
| 65 | |
| 66 | Resources::QueuedEventData eventData; |
| 67 | eventData.axisEvent.axis = p_Event.axis; |
| 68 | eventData.axisEvent.value = axisValue; |
| 69 | Resources::EventManager::queueEvent(_N(AxisChanged), eventData); |
| 70 | |
| 71 | auto virtualKey = _axisToVirtualKeyMapping.find(p_Event.axis); |
| 72 | if (virtualKey != _axisToVirtualKeyMapping.end()) |
| 73 | { |
| 74 | _virtualKeyStates[p_Event.playerId][virtualKey->second] = axisValue; |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | // <- |
| 80 |
nothing calls this directly
no outgoing calls
no test coverage detected