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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user