![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Physical keyboard device and state management. More...
#include <Keyboard.hpp>
Inheritance diagram for galaxy::Keyboard:
Collaboration diagram for galaxy::Keyboard:Public Member Functions | |
| ~Keyboard () noexcept | |
| Destructor. | |
| void | begin_text_input (const SDL_TextInputType input_type, const SDL_Capitalization capitals, const bool multiline) const noexcept |
| Enable window to begin processing text input. | |
| void | end_text_input () const noexcept |
| Disable text input. | |
| void | clear_state () const noexcept |
| Will clear any existing keyboard state. | |
| bool | has_keyboard () const noexcept |
| Check if there is a keyboard connected. | |
| bool | has_onscreen_keyboard () const noexcept |
| Check if an onscreen keyboard is supported. | |
| bool | onscreen_keyboard_active () const noexcept |
| Check if onscreen keyboard is shown. | |
Public Member Functions inherited from galaxy::WindowBindable | |
| virtual | ~WindowBindable () noexcept |
| Virtual destructor. | |
Private Member Functions | |
| Keyboard () noexcept | |
| Constructor. | |
| Keyboard (Keyboard &&)=delete | |
| Move constructor. | |
| Keyboard & | operator= (Keyboard &&)=delete |
| Move assignment operator. | |
| Keyboard (const Keyboard &)=delete | |
| Copy constructor. | |
| Keyboard & | operator= (const Keyboard &)=delete |
| Copy assignment operator. | |
Additional Inherited Members | |
Protected Member Functions inherited from galaxy::WindowBindable | |
| WindowBindable () noexcept | |
| Constructor. | |
| WindowBindable (WindowBindable &&) noexcept | |
| Move constructor. | |
| virtual WindowBindable & | operator= (WindowBindable &&) noexcept |
| Move assignment operator. | |
| WindowBindable (const WindowBindable &) noexcept | |
| Copy constructor. | |
| virtual WindowBindable & | operator= (const WindowBindable &) noexcept |
| Copy assignment operator. | |
| void | bind_window (SDL_Window *window) noexcept |
| Bind SDL3 window to this object. | |
Protected Attributes inherited from galaxy::WindowBindable | |
| SDL_Window * | m_window |
| Pointer to SDL_Window handle. | |
Physical keyboard device and state management.
Definition at line 22 of file Keyboard.hpp.
|
noexcept |
Destructor.
Definition at line 16 of file Keyboard.cpp.
|
privatenoexcept |
Constructor.
Definition at line 12 of file Keyboard.cpp.
|
privatedelete |
Move constructor.
|
privatedelete |
Copy constructor.
|
noexcept |
Enable window to begin processing text input.
Prevents normal key input until disabled.
| input_type | An SDL_TextInputType value that describes text being input. |
| capitals | An SDL_Capitalization value that describes how text should be capitalized. |
| multiline | True if multiple lines of text are allowed. |
Definition at line 20 of file Keyboard.cpp.
Here is the caller graph for this function:
|
noexcept |
Disable text input.
Definition at line 35 of file Keyboard.cpp.
Here is the caller graph for this function:
|
noexcept |
Will clear any existing keyboard state.
Definition at line 40 of file Keyboard.cpp.
Here is the caller graph for this function:
|
nodiscardnoexcept |
Check if there is a keyboard connected.
Definition at line 45 of file Keyboard.cpp.
Here is the caller graph for this function:
|
nodiscardnoexcept |
Check if an onscreen keyboard is supported.
Definition at line 50 of file Keyboard.cpp.
Here is the caller graph for this function:
|
nodiscardnoexcept |
Check if onscreen keyboard is shown.
Definition at line 55 of file Keyboard.cpp.
Here is the caller graph for this function: