forked from laamaa/m8c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
56 lines (46 loc) · 1.17 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright 2021 Jonne Kokkonen
// Released under the MIT licence, https://opensource.org/licenses/MIT
#ifndef CONFIG_H_
#define CONFIG_H_
#include "ini.h"
typedef struct config_params_s {
char *filename;
int init_fullscreen;
int init_software;
int key_up;
int key_left;
int key_down;
int key_right;
int key_select;
int key_select_alt;
int key_start;
int key_start_alt;
int key_opt;
int key_opt_alt;
int key_edit;
int key_edit_alt;
int key_delete;
int key_reset;
int gamepad_up;
int gamepad_left;
int gamepad_down;
int gamepad_right;
int gamepad_select;
int gamepad_start;
int gamepad_opt;
int gamepad_edit;
int gamepad_analog_threshold;
int gamepad_analog_invert;
int gamepad_analog_axis_updown;
int gamepad_analog_axis_leftright;
int gamepad_analog_axis_start;
int gamepad_analog_axis_select;
int gamepad_analog_axis_opt;
int gamepad_analog_axis_edit;
} config_params_s;
config_params_s init_config();
void read_config();
void read_graphics_config(ini_t *config, config_params_s *conf);
void read_key_config(ini_t *config, config_params_s *conf);
void read_gamepad_config(ini_t *config, config_params_s *conf);
#endif