1
1
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
653 B

#include <SDL2/SDL.h>
#ifndef CRTL_H
#define CRTL_H
enum Game_Interaction {
PLAYER_UP,
PLAYER_DOWN,
PLAYER_RIGHT,
PLAYER_LEFT
};
struct InputMap {
SDL_Scancode player_up;
SDL_Scancode player_down;
SDL_Scancode player_left;
SDL_Scancode player_right;
SDL_Scancode player_rope;
SDL_Scancode player_pull_rope;
SDL_Scancode mute;
SDL_Scancode quit;
SDL_Scancode pause;
SDL_Scancode goto_level;
SDL_Scancode high_contrast_mode;
Uint8 mouse_attach_rope_pull;
Uint8 mouse_attach_rope;
};
extern struct InputMap input_map;
void get_input_map(void);
void save_controls(void);
#endif