diff options
author | Benji Dial <benji6283@gmail.com> | 2021-03-08 16:46:22 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-03-08 16:46:22 -0500 |
commit | 920f1f010284d59bad86f78355ed90ac2f3e1d2c (patch) | |
tree | 19e2abcf6f546e251151582c700cfce312224eb1 /src/user/include/pland | |
parent | af52ddac750311ace3bd997245771b26119e1659 (diff) | |
download | portland-os-920f1f010284d59bad86f78355ed90ac2f3e1d2c.tar.gz |
mouse movement in raleigh, with colorpicker dragging example
Diffstat (limited to 'src/user/include/pland')
-rw-r--r-- | src/user/include/pland/syscall.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/user/include/pland/syscall.h b/src/user/include/pland/syscall.h index d7dfd77..1e040f4 100644 --- a/src/user/include/pland/syscall.h +++ b/src/user/include/pland/syscall.h @@ -57,7 +57,8 @@ enum _scn { _SCN_IS_TASK_RUNNING, _SCN_GET_TIMESTAMP, _SCN_FILE_WRITE, - _SCN_SET_FILE_SIZE + _SCN_SET_FILE_SIZE, + _SCN_WANTS_MOUSE_MOVES }; static inline uint32_t _sc0(enum _scn eax) { @@ -254,6 +255,10 @@ static inline void _set_file_size(_file_handle_t handle, uint32_t new_size) { _sc2(_SCN_SET_FILE_SIZE, handle, new_size); } +static inline void _wants_mouse_moves(_window_handle_t window) { + _sc1(_SCN_WANTS_MOUSE_MOVES, (uint32_t)window); +} + #ifdef __cplusplus } #endif |