18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-20 17:25:00 +01:00

feat(editor): the cursor drawn into the picture, for streams and recordings of the window

View > Cursor drawn into the picture (streams): the system pointer is hidden and ImGui draws its own into the frame, so it shows
in a capture of the window (Discord, OBS, the capture of the system), which leaves the system pointer out. Off by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DDcMn1Q7wdYkbxDUWscNHZ
This commit is contained in:
Claude
2026-11-09 23:14:12 +01:00
parent e6fa206e47
commit be7f9e4712
4 changed files with 26 additions and 1 deletions

View File

@@ -104,6 +104,9 @@ public:
static void begin_ui_frame_internal();
//
static void set_cursor( int Mode );
// the cursor drawn into the picture by the interface instead of the system: seen in a stream or a recording of the window
static void draw_cursor( bool Draw );
static bool drawn_cursor() { return m_drawcursor; }
// loading
void set_progress(std::string const &Text);
void set_progress(float progress, float subtaskprogress);
@@ -139,6 +142,7 @@ protected:
static GLFWwindow *m_keywindow; // window of the key event being handled
static ImGuiIO *m_imguiio;
static bool m_cursorvisible;
static inline bool m_drawcursor{ false };
virtual void render_menu_contents();
// items of the windows menu which belong to the ui of a mode, after the common ones