25 lines
403 B
C
25 lines
403 B
C
//
|
|
// Created by karl on 07.01.20.
|
|
//
|
|
|
|
#ifndef ECSGAME_MOUSELOOK_H
|
|
#define ECSGAME_MOUSELOOK_H
|
|
|
|
#include <glm/glm.hpp>
|
|
#include <glm/gtc/quaternion.hpp>
|
|
|
|
struct MouseLook {
|
|
explicit MouseLook(float sensitivity) : sensitivity(sensitivity) {}
|
|
|
|
float sensitivity;
|
|
|
|
double yaw = 0.0;
|
|
double pitch = 0.0;
|
|
|
|
glm::quat rotation;
|
|
|
|
bool is_active = true;
|
|
};
|
|
|
|
#endif // ECSGAME_MOUSELOOK_H
|