]> git.localhorst.tv Git - blank.git/blob - src/app/Config.hpp
split input handling
[blank.git] / src / app / Config.hpp
1 #ifndef BLANK_APP_CONFIG_HPP_
2 #define BLANK_APP_CONFIG_HPP_
3
4 #include <cstdint>
5 #include <string>
6
7
8 namespace blank {
9
10 struct Config {
11
12         struct Audio {
13
14                 bool enabled = true;
15
16         } audio;
17
18         struct Input {
19
20                 bool keyboard = true;
21                 bool mouse = true;
22
23                 float pitch_sensitivity = -0.0025f;
24                 float yaw_sensitivity = -0.001f;
25
26         } input;
27
28         struct Network {
29
30                 std::string host = "localhost";
31                 std::uint16_t port = 12354;
32
33         } net;
34
35         struct Player {
36
37                 std::string name = "default";
38
39         } player;
40
41         struct Video {
42
43                 bool dblbuf = true;
44                 bool vsync = true;
45                 int msaa = 1;
46
47                 bool hud = true;
48                 bool world = true;
49                 bool debug = false;
50
51         } video;
52
53 };
54
55 }
56
57 #endif