mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-22 16:03:31 +00:00
FEAT:Raspberry PI cursor in tweaks
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user