Cub3D
 
Loading...
Searching...
No Matches
Hooks functions

All the functions used to use hooks on windows. More...

Functions

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.
 

Detailed Description

All the functions used to use hooks on windows.

Function Documentation

◆ cub_keydown_hook()

int cub_keydown_hook ( int keycode,
void * param )

Hook when a key is pressed.

Parameters
[in]keycodekeycode of key pressed
[in,out]paramparam
Returns
int keycode
Here is the call graph for this function:

◆ cub_keyup_hook()

int cub_keyup_hook ( int keycode,
void * param )

Hook when a key is released.

Parameters
[in]keycodekeycode of key released
[in,out]paramparam
Returns
int keycode
Here is the call graph for this function:

◆ 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]buttonbutton pressed
[in]xx axis
[in]yy axis
[in,out]paramparam
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]xx axis
[in]yy axis
[in,out]paramparam
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
[in,out]paramparam
Returns
int 0 always
Here is the call graph for this function:

◆ hook_settings_handle_keypress()

int hook_settings_handle_keypress ( int keycode,
void * param )

Handle mouse click in the settings window.

Parameters
[in]keycodekeycode of the key pressed
[in,out]paramPointer to the mlx structure
Returns
int
Here is the call graph for this function:

◆ 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]buttonbutton pressed
[in]xx axis
[in]yy axis
[in,out]paramparam
Returns
int 0 OK, -1 otherwise
Here is the call graph for this function:

◆ 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]xx axis
[in]yy axis
[in,out]paramparam
Returns
int 0 OK, -1 otherwise
Here is the call graph for this function: