random cleanup
This commit is contained in:
parent
a6bf08a5bf
commit
383234efe7
4 changed files with 1 additions and 9 deletions
|
@ -337,11 +337,6 @@ void gamepad_shutdown(void) {
|
|||
events_unregister_handler(gamepad_event_handler);
|
||||
}
|
||||
|
||||
void gamepad_restart(void) {
|
||||
gamepad_shutdown();
|
||||
gamepad_init();
|
||||
}
|
||||
|
||||
static float gamepad_axis_sens(GamepadAxis id) {
|
||||
if(id == config_get_int(CONFIG_GAMEPAD_AXIS_LR))
|
||||
return config_get_float(CONFIG_GAMEPAD_AXIS_LR_SENS);
|
||||
|
|
|
@ -98,7 +98,6 @@ enum {
|
|||
|
||||
void gamepad_init(void);
|
||||
void gamepad_shutdown(void);
|
||||
void gamepad_restart(void);
|
||||
void gamepad_event(SDL_Event*, EventHandler, EventFlags, void*);
|
||||
|
||||
int gamepad_device_count(void);
|
||||
|
|
|
@ -234,7 +234,7 @@
|
|||
#define HT_MIN_SIZE 32
|
||||
#endif
|
||||
|
||||
// TODO: static_assert HT_MIN_SIZE is a power of 2
|
||||
static_assert((HT_MIN_SIZE & (~HT_MIN_SIZE + 1)) == HT_MIN_SIZE, "HT_MIN_SIZE must be power of two");
|
||||
|
||||
/*
|
||||
* The following macros comprise the core of the templating machinery.
|
||||
|
|
|
@ -47,8 +47,6 @@ typedef enum VideoBackend {
|
|||
VIDEO_BACKEND_SWITCH,
|
||||
} VideoBackend;
|
||||
|
||||
// TODO make this struct private
|
||||
|
||||
typedef enum VideoCapability {
|
||||
VIDEO_CAP_FULLSCREEN,
|
||||
VIDEO_CAP_EXTERNAL_RESIZE,
|
||||
|
|
Loading…
Reference in a new issue