nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gamnit: fix animations with a single frame
[nit.git]
/
lib
/
gamnit
/
display_linux.nit
diff --git
a/lib/gamnit/display_linux.nit
b/lib/gamnit/display_linux.nit
index
15f5281
..
e3ab243
100644
(file)
--- a/
lib/gamnit/display_linux.nit
+++ b/
lib/gamnit/display_linux.nit
@@
-36,6
+36,10
@@
redef class GamnitDisplay
redef fun show_cursor=(val) do sdl.show_cursor = val
+ redef fun lock_cursor=(val) do sdl.relative_mouse_mode = val
+
+ redef fun lock_cursor do return sdl.relative_mouse_mode
+
# Setup SDL, wm, EGL in order
redef fun setup
do