Files
MeshShadingDemo/src/System/FlyCamSystem.h
T

22 lines
652 B
C++
Raw Normal View History

2024-04-22 12:47:05 +02:00
#pragma once
#include "Define.h"
#include "Seele/MinimalEngine.h"
#include <Seele/Scene/Scene.h>
#include <Seele/System/ComponentSystem.h>
#include <Seele/Component/Camera.h>
#include <Seele/Component/KeyboardInput.h>
class FlyCamSystem : public System::ComponentSystem<
Component::KeyboardInput,
Component::Camera,
Component::Transform>
{
public:
FlyCamSystem(PScene scene);
virtual ~FlyCamSystem();
virtual void update(Seele::Component::KeyboardInput& input, Seele::Component::Camera& camera, Seele::Component::Transform& transform) override;
private:
float lastMouseX;
float lastMouseY;
};
DEFINE_REF(FlyCamSystem)