| 10833 | } |
| 10834 | |
| 10835 | static float inline NavScoreItemDistInterval(float cand_min, float cand_max, float curr_min, float curr_max) |
| 10836 | { |
| 10837 | if (cand_max < curr_min) |
| 10838 | return cand_max - curr_min; |
| 10839 | if (curr_max < cand_min) |
| 10840 | return cand_min - curr_max; |
| 10841 | return 0.0f; |
| 10842 | } |
| 10843 | |
| 10844 | // Scoring function for gamepad/keyboard directional navigation. Based on https://gist.github.com/rygorous/6981057 |
| 10845 | static bool ImGui::NavScoreItem(ImGuiNavItemData* result) |