CS4850 Final Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
InputManager Struct Reference

Singleton class that handles input. More...

#include <InputManager.hpp>

Public Member Functions

bool IsKeyPressed (std::string key)
 Check if a key is pressed. Use SDL_Scancode for key.
 

Static Public Member Functions

static InputManagerInstance ()
 Get the instance of the InputManager.
 

Detailed Description

Singleton class that handles input.

Member Function Documentation

◆ Instance()

static InputManager & InputManager::Instance ( )
inlinestatic

Get the instance of the InputManager.

Returns
InputManager& InputManager instance

◆ IsKeyPressed()

bool InputManager::IsKeyPressed ( std::string key)
inline

Check if a key is pressed. Use SDL_Scancode for key.

Parameters
keyKey to check
Returns
true if the key is pressed
false if the key is not pressed

The documentation for this struct was generated from the following file: