8#ifndef GALAXY_INPUT_KEYBOARD_HPP_
9#define GALAXY_INPUT_KEYBOARD_HPP_
13#include <SDL3/SDL_keyboard.h>
45 void begin_text_input(
const SDL_TextInputType input_type,
const SDL_Capitalization capitals,
const bool multiline)
const noexcept;
Keyboard() noexcept
Constructor.
void clear_state() const noexcept
Will clear any existing keyboard state.
void end_text_input() const noexcept
Disable text input.
bool onscreen_keyboard_active() const noexcept
Check if onscreen keyboard is shown.
Keyboard & operator=(const Keyboard &)=delete
Copy assignment operator.
SDL_Scancode get_scancode(const Keys key, const KeyMods modifier=KeyMods::MOD_NONE) const noexcept
Get key scancode.
bool is_key_mod_down(const KeyMods modifier) const noexcept
See if a key mod is being held down.
Keyboard(Keyboard &&)=delete
Move constructor.
Keyboard & operator=(Keyboard &&)=delete
Move assignment operator.
bool has_keyboard() const noexcept
Check if there is a keyboard connected.
bool is_text_input_active() const noexcept
Is text input active?
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.
Keyboard(const Keyboard &)=delete
Copy constructor.
bool is_key_down(const Keys key) const noexcept
See if a key is being held down.
bool has_onscreen_keyboard() const noexcept
Check if an onscreen keyboard is supported.
WindowBindable() noexcept
Constructor.
Keys
Enum class representing keys.
KeyMods
Enum class for key modifiers.