FEAT:Raspberry PI cursor in tweaks

This commit is contained in:
InviseDivine
2026-03-20 22:59:52 +02:00
parent 96b17e9c8a
commit 0edee15930
8 changed files with 22 additions and 7 deletions

View File

@@ -139,6 +139,11 @@ public:
virtual bool supportsTouchscreen() override { return true; }
virtual void hideCursor(bool hide) {
int isHide = hide ? GLFW_CURSOR_NORMAL : GLFW_CURSOR_HIDDEN;
glfwSetInputMode(window, GLFW_CURSOR, isHide);
}
virtual void openURL(const std::string& url) override {
#ifdef _WIN32
ShellExecuteA(NULL, "open", url.c_str(), NULL, NULL, SW_SHOWNORMAL);