File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 88#include < fstream>
99#include < iostream>
1010
11- // clang-format off
12- #define WIN32_LEAN_AND_MEAN
13- #include < windows.h> // must come before dbt.h
14- #include < winsock2.h>
15- #include < dbt.h>
16- // clang-format on
17-
1811// local includes
1912#include " confighttp.h"
2013#include " display_device.h"
3023#include " video.h"
3124
3225#ifdef _WIN32
26+ #define WIN32_LEAN_AND_MEAN
3327 #include " platform/windows/misc.h"
28+
29+ // clang-format off
30+ #include < Windows.h> // must come before dbt.h
31+ #include < Dbt.h>
32+ // clang-format on
3433#endif
3534
3635extern " C" {
Original file line number Diff line number Diff line change @@ -34,5 +34,11 @@ namespace platf {
3434 */
3535 std::string to_utf8 (const std::wstring &string);
3636
37+ /* *
38+ * @brief Checks if a mouse is physically present and, if not, toggles Mouse Keys
39+ * to force the software cursor to become visible.
40+ * @details This is used as a workaround for KVM switches that do not send
41+ * standard device removal messages, which can cause the cursor to disappear.
42+ */
3743 void check_and_force_cursor_visibility ();
3844} // namespace platf
You can’t perform that action at this time.
0 commit comments