mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-06 04:58:47 +02:00
Renamed CaptureMouseFromApp() and CaptureKeyboardFromApp() to SetNextFrameWantCaptureMouse() and SetNextFrameWantCaptureKeyboard(). Added demo. (#5304, #4831, #4480, #533)
This commit is contained in:
@ -7767,16 +7767,16 @@ void ImGui::SetMouseCursor(ImGuiMouseCursor cursor_type)
|
||||
g.MouseCursor = cursor_type;
|
||||
}
|
||||
|
||||
void ImGui::CaptureKeyboardFromApp(bool capture)
|
||||
void ImGui::SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard)
|
||||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
g.WantCaptureKeyboardNextFrame = capture ? 1 : 0;
|
||||
g.WantCaptureKeyboardNextFrame = want_capture_keyboard ? 1 : 0;
|
||||
}
|
||||
|
||||
void ImGui::CaptureMouseFromApp(bool capture)
|
||||
void ImGui::SetNextFrameWantCaptureMouse(bool want_capture_mouse)
|
||||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
g.WantCaptureMouseNextFrame = capture ? 1 : 0;
|
||||
g.WantCaptureMouseNextFrame = want_capture_mouse ? 1 : 0;
|
||||
}
|
||||
|
||||
static const char* GetInputSourceName(ImGuiInputSource source)
|
||||
|
Reference in New Issue
Block a user