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

Method GetCurrentReading

modules/engine/input/src/input.cpp:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117EInputResult Input::GetCurrentReading(EInputKind kind, InputDevice* device, InputLayer** out_layer, InputReading** out_reading)
118{
119 auto layers = GetLayers();
120 for (auto layer : layers)
121 {
122 if (layer->GetCurrentReading(kind, device, out_reading) == INPUT_RESULT_OK)
123 {
124 if (out_layer) *out_layer = layer;
125 return INPUT_RESULT_OK;
126 }
127 }
128 return INPUT_RESULT_NOT_FOUND;
129}
130
131EInputResult Input::GetNextReading(InputReading* reference, EInputKind kind, InputDevice* device, InputLayer** out_layer, InputReading** out_reading)
132{

Callers 6

updateMethod · 0.80
Input_CommonClass · 0.80
Input_GameInputClass · 0.80
PollKeyboardInputMethod · 0.80
TriggerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected