|
group2 0.1.0
CSE 125 Group 2
|
Client-only input sampling for mouse look and movement keys. More...
#include "ecs/components/InputSnapshot.hpp"#include "ecs/components/LocalPlayer.hpp"#include "ecs/registry/Registry.hpp"#include <SDL3/SDL.h>#include <algorithm>#include <cmath>#include <glm/trigonometric.hpp>Go to the source code of this file.
Namespaces | |
| namespace | systems |
| Client-only input sampling system — split into two halves so mouse look can run every iterate() (smooth camera at any FPS) while movement keys run once per physics tick group (server-consistent). | |
Functions | |
| void | systems::runMouseLook (Registry ®istry, float mouseSensitivity) |
| Sample mouse delta and accumulate into yaw / pitch. | |
| void | systems::runMovementKeys (Registry ®istry) |
| Sample keyboard state into the movement flags. | |
| void | systems::runWeaponKeys (Registry ®istry) |
| Sample keyboard state into the weapon flags. | |
| void | systems::runInputSample (Registry ®istry, float mouseSensitivity=0.001f) |
| Legacy combined sampler — calls both runMouseLook and runMovementKeys. | |
Client-only input sampling for mouse look and movement keys.