MCPcopy Create free account
hub / github.com/begla/Intrinsic / processAxisEvent

Method processAxisEvent

IntrinsicCore/src/IntrinsicCoreInputSystem.cpp:59–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57// <-
58
59void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected