|
Kore
|
Provides mouse-support. More...
Go to the source code of this file.
Macros | |
| #define | KINC_MOUSE_LEFT 0 |
| #define | KINC_MOUSE_RIGHT 1 |
| #define | KINC_MOUSE_MIDDLE 2 |
| #define | KINC_MOUSE_EXTRA1 3 |
| #define | KINC_MOUSE_EXTRA2 4 |
Functions | |
| KINC_FUNC void | kinc_mouse_set_press_callback (void(*value)(int, int, int, int, void *), void *data) |
| Sets the mouse-press-callback which is called when a mouse-button is pressed. The button callback argument will usually contain one of the KINC_MOUSE_* values, but can contain higher values on certain platforms when mice with a lot of buttons are used. | |
| KINC_FUNC void | kinc_mouse_set_release_callback (void(*value)(int, int, int, int, void *), void *data) |
| Sets the mouse-release-callback which is called when a mouse-button is released. The button callback argument will usually contain one of the KINC_MOUSE_* values, but can contain higher values on certain platforms when mice with a lot of buttons are used. | |
| KINC_FUNC void | kinc_mouse_set_move_callback (void(*value)(int, int, int, int, int, void *), void *data) |
| Sets the mouse-move-callback which is called when the mouse is moved. | |
| KINC_FUNC void | kinc_mouse_set_scroll_callback (void(*value)(int, int, void *), void *data) |
| Sets the mouse-scroll-callback which is called when the mouse wheel is spinning. | |
| KINC_FUNC void | kinc_mouse_set_enter_window_callback (void(*value)(int, void *), void *data) |
| Sets the mouse-enter-window-callback which is called when the mouse-cursor enters the application-window. | |
| KINC_FUNC void | kinc_mouse_set_leave_window_callback (void(*value)(int, void *), void *data) |
| Sets the mouse-leave-window-callback which is called when the mouse-cursor leaves the application-window. | |
| KINC_FUNC bool | kinc_mouse_can_lock (void) |
| Figures out whether mouse-locking is supported. | |
| KINC_FUNC bool | kinc_mouse_is_locked (void) |
| Figures out whether the mouse is currently locked. | |
| KINC_FUNC void | kinc_mouse_lock (int window) |
| Locks the mouse to a window. | |
| KINC_FUNC void | kinc_mouse_unlock (void) |
| Unlocks the mouse. | |
| KINC_FUNC void | kinc_mouse_set_cursor (int cursor) |
| Change the cursor-image to something that's semi-randomly based on the provided int. | |
| KINC_FUNC void | kinc_mouse_show (void) |
| Shows the mouse-cursor. | |
| KINC_FUNC void | kinc_mouse_hide (void) |
| Hides the mouse-cursor. | |
| KINC_FUNC void | kinc_mouse_set_position (int window, int x, int y) |
| Manually sets the mouse-cursor-position. | |
| KINC_FUNC void | kinc_mouse_get_position (int window, int *x, int *y) |
| Gets the current mouse-position relative to a window. | |
Provides mouse-support.
| KINC_FUNC bool kinc_mouse_can_lock | ( | void | ) |
Figures out whether mouse-locking is supported.
| KINC_FUNC void kinc_mouse_get_position | ( | int | window, |
| int * | x, | ||
| int * | y ) |
Gets the current mouse-position relative to a window.
| window | The window to base the returned position on |
| x | A pointer where the cursor's x-position is put into |
| y | A pointer where the cursor's y-position is put into |
| KINC_FUNC bool kinc_mouse_is_locked | ( | void | ) |
Figures out whether the mouse is currently locked.
| KINC_FUNC void kinc_mouse_lock | ( | int | window | ) |
Locks the mouse to a window.
| window | The window to lock the mouse to |
| KINC_FUNC void kinc_mouse_set_cursor | ( | int | cursor | ) |
Change the cursor-image to something that's semi-randomly based on the provided int.
| cursor | Defines what the cursor is changed to - somehow |
| KINC_FUNC void kinc_mouse_set_enter_window_callback | ( | void(* | value )(int, void *), |
| void * | data ) |
Sets the mouse-enter-window-callback which is called when the mouse-cursor enters the application-window.
| value | The callback |
| KINC_FUNC void kinc_mouse_set_leave_window_callback | ( | void(* | value )(int, void *), |
| void * | data ) |
Sets the mouse-leave-window-callback which is called when the mouse-cursor leaves the application-window.
| value | The callback |
| KINC_FUNC void kinc_mouse_set_move_callback | ( | void(* | value )(int, int, int, int, int, void *), |
| void * | data ) |
Sets the mouse-move-callback which is called when the mouse is moved.
| value | The callback |
| KINC_FUNC void kinc_mouse_set_position | ( | int | window, |
| int | x, | ||
| int | y ) |
Manually sets the mouse-cursor-position.
| window | The window to place the cursor in |
| x | The x-position inside the window to place the cursor at |
| y | The y-position inside the window to place the cursor at |
| KINC_FUNC void kinc_mouse_set_press_callback | ( | void(* | value )(int, int, int, int, void *), |
| void * | data ) |
Sets the mouse-press-callback which is called when a mouse-button is pressed. The button callback argument will usually contain one of the KINC_MOUSE_* values, but can contain higher values on certain platforms when mice with a lot of buttons are used.
| value | The callback |
| KINC_FUNC void kinc_mouse_set_release_callback | ( | void(* | value )(int, int, int, int, void *), |
| void * | data ) |
Sets the mouse-release-callback which is called when a mouse-button is released. The button callback argument will usually contain one of the KINC_MOUSE_* values, but can contain higher values on certain platforms when mice with a lot of buttons are used.
| value | The callback |
| KINC_FUNC void kinc_mouse_set_scroll_callback | ( | void(* | value )(int, int, void *), |
| void * | data ) |
Sets the mouse-scroll-callback which is called when the mouse wheel is spinning.
| value | The callback |
| KINC_FUNC void kinc_mouse_unlock | ( | void | ) |
Unlocks the mouse.