group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
InputCapture.cpp File Reference

Implementation of mouse/keyboard capture helpers used at screen transitions. More...

#include "InputCapture.hpp"
#include <SDL3/SDL_events.h>
#include <SDL3/SDL_keyboard.h>
#include <SDL3/SDL_log.h>
#include <SDL3/SDL_mouse.h>
Include dependency graph for InputCapture.cpp:

Namespaces

namespace  input_capture

Functions

void input_capture::acquireGameplayInputCapture (SDL_Window *window)
 Put the window into relative-mouse mode for in-game look, draining any stale state.
void input_capture::releaseGameplayInputCapture (SDL_Window *window)
 Fully release mouse capture so menu screens get a normal desktop cursor.

Detailed Description

Implementation of mouse/keyboard capture helpers used at screen transitions.