Return 2D vector representing the combination of four cardinal direction, with analog value support (for e.g. ImGuiKey_GamepadLStick* values).
| 9339 | |
| 9340 | // Return 2D vector representing the combination of four cardinal direction, with analog value support (for e.g. ImGuiKey_GamepadLStick* values). |
| 9341 | ImVec2 ImGui::GetKeyMagnitude2d(ImGuiKey key_left, ImGuiKey key_right, ImGuiKey key_up, ImGuiKey key_down) |
| 9342 | { |
| 9343 | return ImVec2( |
| 9344 | GetKeyData(key_right)->AnalogValue - GetKeyData(key_left)->AnalogValue, |
| 9345 | GetKeyData(key_down)->AnalogValue - GetKeyData(key_up)->AnalogValue); |
| 9346 | } |
| 9347 | |
| 9348 | // Rewrite routing data buffers to strip old entries + sort by key to make queries not touch scattered data. |
| 9349 | // Entries D,A,B,B,A,C,B --> A,A,B,B,B,C,D |
nothing calls this directly
no test coverage detected