Skip to content

Commit 2e973f1

Browse files
committed
fix: add pl_set_mouse_pos stub to non win32 platform backends
1 parent cd6bae9 commit 2e973f1

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

src/pl_main_glfw.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1706,6 +1706,12 @@ pl_glfw_cursor_enter_callback(GLFWwindow* window, int entered)
17061706
}
17071707
}
17081708

1709+
bool
1710+
pl_set_mouse_pos(plWindow* ptWindow, plVec2 tPos)
1711+
{
1712+
return false; // not implemented on this platform
1713+
}
1714+
17091715
void
17101716
pl_glfw_window_focus_callback(GLFWwindow* window, int focused)
17111717
{

src/pl_main_macos.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,12 @@ - (void)unmarkText
11591159
return PL_CURSOR_MODE_NORMAL;
11601160
}
11611161

1162+
bool
1163+
pl_set_mouse_pos(plWindow* ptWindow, plVec2 tPos)
1164+
{
1165+
return false; // not implemented on this platform
1166+
}
1167+
11621168
bool
11631169
pl_set_raw_mouse_input(plWindow* ptWindow, bool bValue)
11641170
{

src/pl_main_x11.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,12 @@ pl_get_cursor_mode(plWindow* ptWindow)
10131013
return PL_CURSOR_MODE_NORMAL;
10141014
}
10151015

1016+
bool
1017+
pl_set_mouse_pos(plWindow* ptWindow, plVec2 tPos)
1018+
{
1019+
return false; // not implemented on this platform
1020+
}
1021+
10161022
bool
10171023
pl_set_raw_mouse_input(plWindow* ptWindow, bool bValue)
10181024
{

0 commit comments

Comments
 (0)