|
FifeGUI 0.2.0
A C++ GUI library designed for games.
|
#include <input.hpp>
Public Member Functions | |
| virtual void | _pollInput ()=0 |
| virtual KeyInput | dequeueKeyInput ()=0 |
| virtual MouseInput | dequeueMouseInput ()=0 |
| Input (Input &&)=delete | |
| Input (Input const &)=delete | |
| virtual bool | isKeyQueueEmpty ()=0 |
| virtual bool | isMouseQueueEmpty ()=0 |
| Input & | operator= (Input &&)=delete |
| Input & | operator= (Input const &)=delete |
Abstract interface for polling user input devices.
FifeGUI contains implementations of Input for common libraries like SDL. To make FifeGUI usable with other libraries, an Input class must be implemented.
|
pure virtual |
Polls all exsisting input.
Called when input should be polled. The function exists for compatibility reason where some libraries need to poll input at a certain logic rate.
Implemented in fcn::GenericInput, and fcn::sdl2::Input.
|
pure virtual |
Dequeues the key input queue.
Implemented in fcn::GenericInput, and fcn::sdl2::Input.
|
pure virtual |
Dequeues the mouse input queue.
Implemented in fcn::GenericInput, and fcn::sdl2::Input.
|
pure virtual |
Checks if the key queue is empty, or not.
Implemented in fcn::GenericInput, and fcn::sdl2::Input.
|
pure virtual |
Checks if the mouse queue is empyt, or not.
Implemented in fcn::GenericInput, and fcn::sdl2::Input.