瀏覽代碼

Wayland: Add error for unsupported feature

Camilla Löwy 3 年之前
父節點
當前提交
3a60992a41
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/wl_window.c

+ 2 - 0
src/wl_window.c

@@ -2252,6 +2252,8 @@ void _glfwGetCursorPosWayland(_GLFWwindow* window, double* xpos, double* ypos)
 
 
 void _glfwSetCursorPosWayland(_GLFWwindow* window, double x, double y)
 void _glfwSetCursorPosWayland(_GLFWwindow* window, double x, double y)
 {
 {
+    _glfwInputError(GLFW_FEATURE_UNAVAILABLE,
+                    "Wayland: The platform does not support setting the cursor position");
 }
 }
 
 
 void _glfwSetCursorModeWayland(_GLFWwindow* window, int mode)
 void _glfwSetCursorModeWayland(_GLFWwindow* window, int mode)