All the functions used to use hooks on windows.
More...
|
| int | cub_keydown_hook (int keycode, void *param) |
| | Hook when a key is pressed.
|
| |
| int | cub_keyup_hook (int keycode, void *param) |
| | Hook when a key is released.
|
| |
| int | cub_mouse_click_hook (int button, int x, int y, void *param) |
| | Hook when the mouse is moved while clicking.
|
| |
| int | cub_mouse_hook (int x, int y, void *param) |
| | Hook when the mouse is moved.
|
| |
| int | hook_settings_handle_mouse_click (int button, int x, int y, void *param) |
| | Hook when the mouse is moved while clicking for the settings.
|
| |
| int | hook_settings_handle_mouse_motion (int x, int y, void *param) |
| | Hook when the mouse is moved for the settings.
|
| |
| int | hook_settings_close_window (void *param) |
| | Hook used to close window or set the window size if MACRO Enabled.
|
| |
| int | hook_settings_handle_keypress (int keycode, void *param) |
| | Handle mouse click in the settings window.
|
| |
All the functions used to use hooks on windows.
◆ cub_keydown_hook()
| int cub_keydown_hook |
( |
int | keycode, |
|
|
void * | param ) |
Hook when a key is pressed.
- Parameters
-
| [in] | keycode | keycode of key pressed |
| [in,out] | param | param |
- Returns
- int keycode
◆ cub_keyup_hook()
| int cub_keyup_hook |
( |
int | keycode, |
|
|
void * | param ) |
Hook when a key is released.
- Parameters
-
| [in] | keycode | keycode of key released |
| [in,out] | param | param |
- Returns
- int keycode
◆ cub_mouse_click_hook()
| int cub_mouse_click_hook |
( |
int | button, |
|
|
int | x, |
|
|
int | y, |
|
|
void * | param ) |
Hook when the mouse is moved while clicking.
- Parameters
-
| [in] | button | button pressed |
| [in] | x | x axis |
| [in] | y | y axis |
| [in,out] | param | param |
- Returns
- int 0 always
◆ cub_mouse_hook()
| int cub_mouse_hook |
( |
int | x, |
|
|
int | y, |
|
|
void * | param ) |
Hook when the mouse is moved.
- Parameters
-
| [in] | x | x axis |
| [in] | y | y axis |
| [in,out] | param | param |
- Returns
- int 0 always
◆ hook_settings_close_window()
| int hook_settings_close_window |
( |
void * | param | ) |
|
Hook used to close window or set the window size if MACRO Enabled.
- Parameters
-
- Returns
- int 0 always
◆ hook_settings_handle_keypress()
| int hook_settings_handle_keypress |
( |
int | keycode, |
|
|
void * | param ) |
Handle mouse click in the settings window.
- Parameters
-
| [in] | keycode | keycode of the key pressed |
| [in,out] | param | Pointer to the mlx structure |
- Returns
- int
◆ hook_settings_handle_mouse_click()
| int hook_settings_handle_mouse_click |
( |
int | button, |
|
|
int | x, |
|
|
int | y, |
|
|
void * | param ) |
Hook when the mouse is moved while clicking for the settings.
- Parameters
-
| [in] | button | button pressed |
| [in] | x | x axis |
| [in] | y | y axis |
| [in,out] | param | param |
- Returns
- int 0 OK, -1 otherwise
◆ hook_settings_handle_mouse_motion()
| int hook_settings_handle_mouse_motion |
( |
int | x, |
|
|
int | y, |
|
|
void * | param ) |
Hook when the mouse is moved for the settings.
- Parameters
-
| [in] | x | x axis |
| [in] | y | y axis |
| [in,out] | param | param |
- Returns
- int 0 OK, -1 otherwise