63 Commits

Author SHA1 Message Date
Marius Petcu
3d501ef57e Implement reusable cursors on macOS 2018-12-31 13:07:22 +02:00
Marius Petcu
e2f24312d2 Ensure consistent handling and reporting of orientations across platforms 2018-10-22 13:16:51 +03:00
Marius Petcu
d7a70e0327 Rename get_parameters to get_arguments 2018-10-21 23:15:37 +03:00
Marius Petcu
d9cee6eb3d Round off cursor position display
On macOS, cursor position is returned with sub-pixel precision
2018-10-21 22:13:55 +03:00
Marius Petcu
64a6579402 Implement getters for the cursor position
Closes #82
2018-10-21 22:08:59 +03:00
Marius Petcu
3a227f5f05 Rename move_cursor_to to set_cursor_pos_view 2018-10-21 21:04:54 +03:00
Marius Petcu
ea93213949 Remove mouse dx/dy being printed out when cursor locked
Let's not give library users ideas that don't work...
2018-10-21 19:53:31 +03:00
Marius Petcu
52026b2267 Restore clipping and locking when window is not focused on Windows
Closes #80
2018-10-21 19:49:02 +03:00
Marius Petcu
0ce309f7d2 Center window on current display in set_view_size and set_window_size 2018-10-20 16:48:32 +03:00
Marius Petcu
c14a1877d1 Implement display queries on macOS 2018-10-20 01:02:20 +03:00
Marius Petcu
4a2744cf78 Merge branch 'master' into screen_related 2018-10-19 16:15:59 +03:00
chaosddp
612ecdab54 merge master 2018-05-07 14:14:41 +08:00
Chaos Yu
88b71fa3c2
Merge branch 'master' into linux 2018-05-07 09:19:45 +08:00
Alexey Gulev
dd4e2e0929 added get_parameters() method that returns application parameters on mac, win and html5 2018-03-12 15:00:08 +03:00
Alexey Gulev
136c5cecb5 fixes for working with true relative path 2018-03-04 19:39:50 +03:00
chaosddp
6fbf7cd5ee set view size 2018-03-04 01:11:44 +08:00
chaosddp
283571f507 change ext to .xcur 2018-03-03 22:53:40 +08:00
chaosddp
6a094dd69d x11 hard cursor (image/x-xcursor) 2018-03-03 15:00:53 +08:00
Alexey Gulev
5595d4ec38 remove unneed slash 2018-02-28 18:41:08 +03:00
Alexey Gulev
89e9b9ab1d added new method set_window_icon for macos, windows, html5 platform 2018-02-28 17:04:28 +03:00
Chaos Yu
063b5e91a7 set window size 2018-02-27 18:27:25 +08:00
chaosddp
f40a97a1c5 list of supported resolutions and other display info of monitor 2018-02-25 02:51:58 +08:00
Marius Petcu
44e7f81b9d Add fullscreen and maximized setters 2018-02-18 17:25:02 +02:00
Marius Petcu
431f09b12f Add cursor lock disabled HTML5 callback 2018-02-18 15:46:23 +02:00
Marius Petcu
ddb2f243e6 Show dx and dy in cursor locked mode 2018-02-18 14:47:16 +02:00
Marius Petcu
bda6855f44 Fix "respond from synchroneous event handler" issue on HTML5 2018-02-18 14:20:52 +02:00
Marius Petcu
b5a967d390 Implement cursor locking on macOS 2018-02-18 13:32:23 +02:00
Marius Petcu
397ac48f86 Unify enable/disable_mouse_cursor 2018-02-18 13:21:15 +02:00
Marius Petcu
c9cfb3722a Simplify console hide/show API 2018-02-18 12:51:36 +02:00
Marius Petcu
727d4171e2 Add cursor lock boilerplate. Simplify cursor clip API 2018-02-18 12:44:08 +02:00
Marius Petcu
093f261fb8 Implement custom HTML5 cursors 2018-02-18 10:43:09 +02:00
Marius Petcu
7ff9139b56 Implement default x and y 2018-02-18 09:57:21 +02:00
Marius Petcu
d553ddf1f7 Add get_view_size() 2018-02-18 09:30:15 +02:00
Marius Petcu
d030ab9aea Rename is_mouse_inside_window to is_mouse_in_view 2018-02-18 02:12:18 +02:00
Marius Petcu
d8a572aef6 Implement custom cursors on macOS 2018-02-18 01:20:41 +02:00
Marius Petcu
40ba9f303a Implement a few system cursors 2018-02-18 00:19:37 +02:00
Marius Petcu
b1839ae2da Rename set_client_size to set_view_size 2018-02-17 21:06:20 +02:00
Marius Petcu
3e3fd73976 Reset window size with set_client_size 2018-02-17 21:03:56 +02:00
Marius Petcu
37ffac8392 Conditionally run Windows-specific stuff in example 2018-02-17 19:59:47 +02:00
chaos yu
b23b25bdc5 restore the removed code when testing 2018-01-28 18:26:57 +08:00
chaos yu
14d3e8f2cb correct the clipping area, update the example layout as there are too many buttons 2018-01-28 17:51:17 +08:00
chaos yu
5f7ac4b647 finish the set_cursor and reset_cursor function, updated the example to change cursor every second 2018-01-28 13:28:10 +08:00
Chaos Yu
32521f2743 place cursor to save folder to use LoadCursorFromFile 2018-01-24 13:31:46 +08:00
chaos yu
e71e374d1f add set_client_size function, and placeholders for macos to avoid error 2018-01-11 23:14:02 +08:00
Chaos Yu
f7946319f4 Revert "remove move_cursor_to function"
This reverts commit 89aff5ef84283d14e6498a5298ee5269a8b0fb5f.
2018-01-11 10:17:09 +08:00
chaos yu
89aff5ef84 remove move_cursor_to function 2018-01-10 20:06:38 +08:00
Chaos Yu
4d173dcc07 update example to clip cursor when get/lost focus and resized 2018-01-10 14:33:50 +08:00
Chaos Yu
f09412fb0f add move_cursor_to to move cursor within window area 2018-01-10 13:57:44 +08:00
Chaos Yu
5cf28a7f35 keep original cursor clipping rectangle on init 2018-01-10 13:37:18 +08:00
chaos yu
7442908d8a add clip_cursor and restore_cursor_clip on windows 2018-01-09 21:09:55 +08:00