diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-25 15:05:09 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-25 15:05:09 +0200 |
commit | d5095a462df8c1373da36924a86c1da7fb3b1c49 (patch) | |
tree | 40df07dbf466d4ee65f0069547ca2166fd6cb535 /src/drivers | |
parent | 96d1781a9ba365baef0f89ef85a2b103bfd6370a (diff) | |
download | abaos-d5095a462df8c1373da36924a86c1da7fb3b1c49.tar.gz abaos-d5095a462df8c1373da36924a86c1da7fb3b1c49.tar.bz2 |
we have a flickering mouse cursor and terrible redrawing of the desktop now :-)
removed the font window for now, far too slow!
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/hdi/ps2/mouse.c | 6 | ||||
-rw-r--r-- | src/drivers/hdi/ps2/mouse.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/drivers/hdi/ps2/mouse.c b/src/drivers/hdi/ps2/mouse.c index 43b8e4f..36b2119 100644 --- a/src/drivers/hdi/ps2/mouse.c +++ b/src/drivers/hdi/ps2/mouse.c @@ -251,3 +251,9 @@ void mouse_set_resolution( mouse_t *mouse, const uint32_t res_x, const uint32_t mouse->cursor_x = mouse->res_x / 2; mouse->cursor_y = mouse->res_y / 2; } + +void mouse_set_position( mouse_t *mouse, const uint32_t x, const uint32_t y ) +{ + mouse->cursor_x = x; + mouse->cursor_y = y; +} diff --git a/src/drivers/hdi/ps2/mouse.h b/src/drivers/hdi/ps2/mouse.h index 166b4df..e6ac326 100644 --- a/src/drivers/hdi/ps2/mouse.h +++ b/src/drivers/hdi/ps2/mouse.h @@ -61,6 +61,7 @@ void mouse_deinit( void *obj ); void mouse_print_info( void *obj ); void mouse_set_resolution( mouse_t *mouse, const uint32_t x, const uint32_t y ); +void mouse_set_position( mouse_t *mouse, const uint32_t x, const uint32_t y ); uint32_t mouse_handle_interrupt( interrupt_handler_t *handler, uint32_t esp ); |