23 ImGuiMouseButton_Left, ImGuiKey_None,
24 -0.25f, -0.25f, 0.0f, 0.1f});
28 ImGuiMouseButton_Right, ImGuiKey_None,
29 -(0.25f * 0.025f), (0.25f * 0.025f), 0.0f, 0.1f});
33 ImGuiMouseButton_Middle, ImGuiKey_None,
34 0.0f, (0.25f / 10.0f), 0.0f, 0.1f});
38 ImGuiMouseButton_Left, ImGuiKey_None,
39 -0.5f, 0.0f, 0.0f, 0.1f});
45 ImGuiMouseButton_Left, ImGuiKey_Keypad4,
46 0.0f, 0.0f, 1.0f, 1.0f});
50 ImGuiMouseButton_Left, ImGuiKey_Keypad6,
51 0.0f, 0.0f, -1.0f, 1.0f});
55 ImGuiMouseButton_Left, ImGuiKey_Keypad8,
56 0.0f, 0.0f, 1.0f, 1.0f});
60 ImGuiMouseButton_Left, ImGuiKey_Keypad2,
61 0.0f, 0.0f, -1.0f, 1.0f});
67 ImGuiMouseButton_Left, ImGuiKey_Keypad7,
68 0.0f, 0.0f, 0.2f, 1.0f});
72 ImGuiMouseButton_Left, ImGuiKey_Keypad9,
73 0.0f, 0.0f, -0.2f, 1.0f});
77 ImGuiMouseButton_Left, ImGuiKey_Keypad1,
78 0.0f, 0.0f, -0.2f, 1.0f});
82 ImGuiMouseButton_Left, ImGuiKey_Keypad3,
83 0.0f, 0.0f, 0.2f, 1.0f});
89 ImGuiMouseButton_Left, ImGuiKey_Keypad5,
90 0.0f, 0.0f, 0.0f, 1.0f});
101 const ImGuiIO& io = ImGui::GetIO();
105 const float shiftMul = (io.KeyShift && b.shiftScale != 1.0f)
106 ? b.shiftScale : 1.0f;
112 if (!ImGui::IsMouseDragging(b.mouseButton))
115 const float dx = io.MouseDelta.x * b.scaleX * shiftMul;
116 const float dy = io.MouseDelta.y * b.scaleY * shiftMul;
139 if (io.MouseWheel == 0.0f)
142 const float scroll = io.MouseWheel * b.scaleX * shiftMul;
151 if (!ImGui::IsKeyDown(b.key))
154 const float delta = b.keyDelta;
170 if (!ImGui::IsKeyPressed(b.key))