![]() |
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>
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. | |
![]() | |
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 | |
![]() | |
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. | |
![]() | |
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.
|
noexcept |
Disable text input.
Definition at line 35 of file Keyboard.cpp.
|
noexcept |
Will clear any existing keyboard state.
Definition at line 40 of file Keyboard.cpp.
|
nodiscardnoexcept |
Check if there is a keyboard connected.
Definition at line 45 of file Keyboard.cpp.
|
nodiscardnoexcept |
Check if an onscreen keyboard is supported.
Definition at line 50 of file Keyboard.cpp.
|
nodiscardnoexcept |
Check if onscreen keyboard is shown.
Definition at line 55 of file Keyboard.cpp.