18 lines
384 B
C
18 lines
384 B
C
#pragma once
|
|
#include <SDL.h>
|
|
|
|
// Input types.
|
|
typedef enum { KEYBIND_NULL, KEYBIND_KEYBOARD, KEYBIND_JAXIS, KEYBIND_JBUTTON } KeybindType;
|
|
|
|
// Set input.
|
|
void input_setDefault(void);
|
|
void input_setKeybind(char* keybind, KeybindType type, int key, int reverse);
|
|
|
|
// Handle the events.
|
|
void input_handle(SDL_Event* event);
|
|
|
|
// Init/Exit.
|
|
void input_init(void);
|
|
void input_exit(void);
|
|
|