|
FifeGUI 0.3.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 |
| virtual std::string | dequeueTextInput () |
| Input (Input &&)=delete | |
| Input (Input const &)=delete | |
| virtual bool | isKeyQueueEmpty ()=0 |
| virtual bool | isMouseQueueEmpty ()=0 |
| virtual bool | isTextQueueEmpty () |
| 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 existing input.
Called when input should be polled.
Implemented in fcn::GenericInput, and fcn::sdl3::Input.
|
pure virtual |
Dequeues the key input queue.
Implemented in fcn::GenericInput, and fcn::sdl3::Input.
|
pure virtual |
Dequeues the mouse input queue.
Implemented in fcn::GenericInput, and fcn::sdl3::Input.
|
inlinevirtual |
Dequeues a UTF-8 text string from the text input queue.
Base implementation returns an empty string. Override in backends that support text input (e.g. SDL3).
Reimplemented in fcn::sdl3::Input.
|
pure virtual |
Checks if the key queue is empty, or not.
Implemented in fcn::GenericInput, and fcn::sdl3::Input.
|
pure virtual |
Checks if the mouse queue is empyt, or not.
Implemented in fcn::GenericInput, and fcn::sdl3::Input.
|
inlinevirtual |
Checks if the text input queue is empty.
Base implementation returns true (no text queue). Override in backends that support text input (e.g. SDL3).
Reimplemented in fcn::sdl3::Input.