MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / GetPreviousReading

Method GetPreviousReading

modules/engine/input/src/input.cpp:145–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145EInputResult Input::GetPreviousReading(InputReading* reference, EInputKind kind, InputDevice* device, InputLayer** out_layer, InputReading** out_reading)
146{
147 auto layers = GetLayers();
148 for (auto layer : layers)
149 {
150 if (layer->GetPreviousReading(reference, kind, device, out_reading) == INPUT_RESULT_OK)
151 {
152 if (out_layer) *out_layer = layer;
153 return INPUT_RESULT_OK;
154 }
155 }
156 return INPUT_RESULT_NOT_FOUND;
157}
158
159} // namespace input
160} // namespace skr

Callers 2

Input_CommonClass · 0.80
Input_GameInputClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected