souleng
Game engine providing full Python scripting support
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
Input Struct Reference

Singleton class for polling and retrieving input from the user. More...

#include <Input.hpp>

Public Member Functions

void PollInputs ()
 Updates all inputs by polling the SDL Event queue for any new events.
 
KeyState GetKey (std::string key)
 
MouseClick GetMouseClick ()
 Retrieves the last known state of the mouse since being clicked.
 
MouseMotion GetMouseMotion ()
 Retrieves the last mouse motion input by the user.
 
bool ReceivedProgramQuit ()
 Returns true if PollInputs receives an SDL_QuitEvent
 

Static Public Member Functions

static Inputinstance ()
 Singleton accessor function for the Input class.
 

Detailed Description

Singleton class for polling and retrieving input from the user.

Member Function Documentation

◆ GetKey()

KeyState Input::GetKey ( std::string key)

Retrieves the last known state of the given key

Parameters
keyThe keyboard key to check the state of

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