| 115 | } |
| 116 | |
| 117 | EInputResult 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 | |
| 131 | EInputResult Input::GetNextReading(InputReading* reference, EInputKind kind, InputDevice* device, InputLayer** out_layer, InputReading** out_reading) |
| 132 | { |
no outgoing calls
no test coverage detected