v2.0.0
Dependency URL:
Add this to your game.project
:
https://github.com/subsoap/defos/archive/v2.0.0.zip
Breaking changes:
enable_mouse_cursor()
anddisable_mouse_cursor()
have been renamed toset_cursor_visible()
.toggle_maximize()
has been renamed totoggle_maximized()
.- If you want to center the window in the center of the screen, use
set_window_size(nil, nil, width, height)
instead ofset_window_size(-1, -1, width, height)
.
New features:
- Precisely set/get the position and resolution of the game view only (without the containing window).
- Change the mouse cursor type between a selection of system cursors and even set custom hardware cursors.
- Programatically move the mouse cursor to an arbitrary position.
- Lock the mouse cursor to a position while still receiving
dx
anddy
(useful for FPS controls). - Clip the cursor within the screen bounds.
- Additional getters and setters for existing features.
- A callback for
onclick
on HTML5 to work around permission issues when usingtoggle_fullscreen()
and the likes.