21 lines
483 B
C
21 lines
483 B
C
#pragma once
|
|
#include <SDL.h>
|
|
#include "pilot.h"
|
|
|
|
extern Pilot* pilot;
|
|
|
|
typedef enum { KEYBIND_NULL, KEYBIND_KEYBOARD, KEYBIND_JAXIS, KEYBIND_JBUTTON } KeybindType;
|
|
|
|
void player_render(void);
|
|
|
|
int player_isFlag(unsigned int flag);
|
|
void player_setFlag(unsigned int flag);
|
|
void player_rmFlag(unsigned int flag);
|
|
|
|
// Input.
|
|
void input_init(void);
|
|
void input_exit(void);
|
|
void input_setKeybind(char* keybind, KeybindType type, int key, int reverse);
|
|
void input_handle(SDL_Event* event);
|
|
|