aboutsummaryrefslogtreecommitdiff
path: root/src/settings.c
blob: 35de96f6e2434472a4a1bc2559b916aa651f7488 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "settings.h"

void initSettings(Settings * settings) {
	*settings = (Settings){
		.controlMode = KEYBOARD_AND_MOUSE_CONTROL,
		.mouseSensitivity = 0.1,
		.scrollBarSpeed = 10.0,
		.lockMouse = true,
		.gamePadNum = 0,
		.pitchStick = 1,
		.yawStick = 0,
		.rollStick = 2,
		.speedStick = 3,
		.joystickSensitivity = 0.5,
		.fps = 60,
		.drawFps = true
	};
}

void applySettings(Settings * settings) {
	SetTargetFPS(settings->fps);
}