harfang3d/harfang/engine/fps_controller.h
2021-10-13 14:40:31 +02:00

18 lines
525 B
C++

// HARFANG(R) Copyright (C) 2021 Emmanuel Julien, NWNC HARFANG. Released under GPL/LGPL/Commercial Licence, see licence.txt for details.
#include "foundation/time.h"
namespace hg {
struct Vec3;
void FpsController(
bool key_up, bool key_down, bool key_left, bool key_right, bool btn, float dx, float dy, Vec3 &pos, Vec3 &rot, float speed, time_ns dt_t);
struct Keyboard;
struct Mouse;
void FpsController(const Keyboard &keyboard, const Mouse &mouse, Vec3 &pos, Vec3 &rot, float speed, time_ns dt_t);
} // namespace hg