group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
InputSampleSystem.hpp File Reference

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>
Include dependency graph for InputSampleSystem.hpp:
This graph shows which files directly or indirectly include this file:

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 &registry, float mouseSensitivity)
 Sample mouse delta and accumulate into yaw / pitch.
 
void systems::runMovementKeys (Registry &registry)
 Sample keyboard state into the movement flags.
 
void systems::runWeaponKeys (Registry &registry)
 Sample keyboard state into the weapon flags.
 
void systems::runInputSample (Registry &registry, float mouseSensitivity=0.001f)
 Legacy combined sampler — calls both runMouseLook and runMovementKeys.
 

Detailed Description

Client-only input sampling for mouse look and movement keys.