1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Cosmetics.

This commit is contained in:
Bartosz Taudul
2022-08-28 13:17:29 +02:00
parent 74789d1049
commit c2d527e2e7
2 changed files with 14 additions and 12 deletions
+7 -5
View File
@@ -146,8 +146,10 @@ private:
Inactive
};
struct KeyboardNavigation {
enum Direction : uint8_t {
struct KeyboardNavigation
{
enum Direction
{
// Pan left / right
Left,
Right,
@@ -156,9 +158,9 @@ private:
Out
};
constexpr static auto DirectionToKeyMap = std::array<int, 4>{ImGuiKey_A, ImGuiKey_D, ImGuiKey_W, ImGuiKey_S};
constexpr static auto StartRangeMod = std::array<int, 4>{-1, 1, 1, -1};
constexpr static auto EndRangeMod = std::array<int, 4>{-1, 1, -1, 1};
constexpr static auto DirectionToKeyMap = std::array<int, 4> { ImGuiKey_A, ImGuiKey_D, ImGuiKey_W, ImGuiKey_S };
constexpr static auto StartRangeMod = std::array<int, 4> { -1, 1, 1, -1 };
constexpr static auto EndRangeMod = std::array<int, 4> { -1, 1, -1, 1 };
std::array<float, 4> m_scrollInertia;
};