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

Method GetNextReading

modules/engine/input/src/input.cpp:131–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131EInputResult Input::GetNextReading(InputReading* reference, EInputKind kind, InputDevice* device, InputLayer** out_layer, InputReading** out_reading)
132{
133 auto layers = GetLayers();
134 for (auto layer : layers)
135 {
136 if (layer->GetNextReading(reference, kind, device, out_reading) == INPUT_RESULT_OK)
137 {
138 if (out_layer) *out_layer = layer;
139 return INPUT_RESULT_OK;
140 }
141 }
142 return INPUT_RESULT_NOT_FOUND;
143}
144
145EInputResult Input::GetPreviousReading(InputReading* reference, EInputKind kind, InputDevice* device, InputLayer** out_layer, InputReading** out_reading)
146{

Callers 2

Input_CommonClass · 0.80
Input_GameInputClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected