1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

sokol: add mouse cursor support (#15111)

This commit is contained in:
Mehmet Ali
2022-07-18 09:44:48 +03:00
committed by GitHub
parent c1502b3c1f
commit 12d57e8e7b
6 changed files with 344 additions and 37 deletions

View File

@@ -97,6 +97,12 @@ pub fn show_mouse(visible bool) {
C.sapp_show_mouse(visible)
}
// set mouse cursor
[inline]
pub fn set_mouse_cursor(cursor MouseCursor) {
C.sapp_set_mouse_cursor(cursor)
}
// show or hide the mouse cursor
[inline]
pub fn mouse_shown() bool {