On-Screen keyboard.
More...
#include <keyboard.hpp>
On-Screen keyboard.
This class represents an on-screen keyboard that converts touch inputs into characters.
Definition at line 78 of file keyboard.hpp.
◆ OnScreenKeyboard()
| OnScreenKeyboard::OnScreenKeyboard |
( |
| ) |
|
|
default |
◆ ~OnScreenKeyboard()
| OnScreenKeyboard::~OnScreenKeyboard |
( |
| ) |
|
|
default |
◆ evaluateInput()
| int OnScreenKeyboard::evaluateInput |
( |
touchPosition * | touch | ) |
|
Checks a touch input against the keyboard positions and returns pressed charcater.
- Parameters
-
| touch | The touch position input to evaluate |
- Returns
- int Character corresponding to the touch input, or 0 if no key was hit
Definition at line 4 of file keyboard.cpp.
◆ reset()
| void OnScreenKeyboard::reset |
( |
| ) |
|
Resets all internal variables to their defaults.
Definition at line 42 of file keyboard.cpp.
◆ isCapsLock
| bool OnScreenKeyboard::isCapsLock = false |
|
private |
◆ isShift
| bool OnScreenKeyboard::isShift = false |
|
private |
◆ keyboardRows
| KeyRow OnScreenKeyboard::keyboardRows[6] |
|
private |
The documentation for this class was generated from the following files: