Cub3D
 
Loading...
Searching...
No Matches
Keys macros

Regroup all the keys used in the project. More...

Macros

#define KEY_ESCAPE   65307
 Keycode for the escape key.
 
#define KEY_ENTER   65293
 Keycode for the enter key.
 
#define KEY_SPACE   32
 Keycode for the space key.
 
#define KEY_ARROW_LEFT   65361
 Keycode for the left key.
 
#define KEY_ARROW_UP   65362
 Keycode for the up key.
 
#define KEY_ARROW_RIGHT   65363
 Keycode for the right key.
 
#define KEY_ARROW_DOWN   65364
 Keycode for the down key.
 
#define KEY_A   97
 Keycode for the A key.
 
#define KEY_W   119
 Keycode for the W key.
 
#define KEY_D   100
 Keycode for the D key.
 
#define KEY_S   115
 Keycode for the S key.
 
#define KEY_C   99
 Keycode for the C key.
 
#define KEY_M   109
 Keycode for the M key.
 
#define KEY_F   102
 Keycode for the F key.
 
#define KEY_V   118
 Keycode for the V key.
 
#define KEY_X   120
 Keycode for the X key.
 

Enumerations

enum  e_movement { MV_UP , MV_LEFT , MV_RIGHT , MV_DOWN }
 Structure used to define the type of movement with directions. More...
 

Detailed Description

Regroup all the keys used in the project.

Macro Definition Documentation

◆ KEY_A

#define KEY_A   97

Keycode for the A key.

◆ KEY_ARROW_DOWN

#define KEY_ARROW_DOWN   65364

Keycode for the down key.

◆ KEY_ARROW_LEFT

#define KEY_ARROW_LEFT   65361

Keycode for the left key.

◆ KEY_ARROW_RIGHT

#define KEY_ARROW_RIGHT   65363

Keycode for the right key.

◆ KEY_ARROW_UP

#define KEY_ARROW_UP   65362

Keycode for the up key.

◆ KEY_C

#define KEY_C   99

Keycode for the C key.

◆ KEY_D

#define KEY_D   100

Keycode for the D key.

◆ KEY_ENTER

#define KEY_ENTER   65293

Keycode for the enter key.

◆ KEY_ESCAPE

#define KEY_ESCAPE   65307

Keycode for the escape key.

◆ KEY_F

#define KEY_F   102

Keycode for the F key.

◆ KEY_M

#define KEY_M   109

Keycode for the M key.

◆ KEY_S

#define KEY_S   115

Keycode for the S key.

◆ KEY_SPACE

#define KEY_SPACE   32

Keycode for the space key.

◆ KEY_V

#define KEY_V   118

Keycode for the V key.

◆ KEY_W

#define KEY_W   119

Keycode for the W key.

◆ KEY_X

#define KEY_X   120

Keycode for the X key.

Enumeration Type Documentation

◆ e_movement

enum e_movement

Structure used to define the type of movement with directions.

Enumerator
MV_UP 
MV_LEFT 
MV_RIGHT 
MV_DOWN