CPP-TOOLBOX
Loading...
Searching...
No Matches
fps_camera Directory Reference

Files

 fps_camera.cpp
 
 fps_camera.hpp
 

Detailed Description

A simple fps camera with no clip movement

camera.process_input(
input_state.is_pressed(EKey::LEFT_CONTROL),
input_state.is_pressed(EKey::TAB),
input_state.is_pressed(EKey::w),
input_state.is_pressed(EKey::a),
input_state.is_pressed(EKey::s),
input_state.is_pressed(EKey::d),
input_state.is_pressed(EKey::SPACE),
input_state.is_pressed(EKey::LEFT_SHIFT),
delta_time);
}
@ s
Definition input_state.hpp:45
@ a
Definition input_state.hpp:27
@ SPACE
Definition input_state.hpp:81
@ d
Definition input_state.hpp:30
@ LEFT_SHIFT
Definition input_state.hpp:146
@ LEFT_CONTROL
Definition input_state.hpp:148
@ w
Definition input_state.hpp:49
@ TAB
Definition input_state.hpp:125