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.
28 lines
426 B
28 lines
426 B
4 years ago
|
#include <SDL2/SDL.h>
|
||
|
|
||
4 years ago
|
#ifndef CRTL_H
|
||
|
#define CRTL_H
|
||
|
|
||
4 years ago
|
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;
|
||
4 years ago
|
SDL_Scancode player_pull_rope;
|
||
4 years ago
|
};
|
||
|
|
||
|
extern struct InputMap input_map;
|
||
|
|
||
|
void get_input_map(void);
|
||
|
|
||
4 years ago
|
#endif
|
||
4 years ago
|
|