Skip to content

v2.0.0

Compare
Choose a tag to compare
@dapetcu21 dapetcu21 released this 20 Feb 15:54
· 150 commits to master since this release
628bdc3

Dependency URL:

Add this to your game.project:

https://github.com/subsoap/defos/archive/v2.0.0.zip

Breaking changes:

  • enable_mouse_cursor() and disable_mouse_cursor() have been renamed to set_cursor_visible().
  • toggle_maximize() has been renamed to toggle_maximized().
  • If you want to center the window in the center of the screen, use set_window_size(nil, nil, width, height) instead of set_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 and dy (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 using toggle_fullscreen() and the likes.