persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
OnScreenKeyboard Class Reference

On-Screen keyboard. More...

#include <keyboard.hpp>

Collaboration diagram for OnScreenKeyboard:

Public Member Functions

 OnScreenKeyboard ()=default
 ~OnScreenKeyboard ()=default
int evaluateInput (touchPosition *touch)
 Checks a touch input against the keyboard positions and returns pressed charcater.
void reset ()
 Resets all internal variables to their defaults.

Private Attributes

bool isCapsLock = false
bool isShift = false
KeyRow keyboardRows [6]

Detailed Description

On-Screen keyboard.

This class represents an on-screen keyboard that converts touch inputs into characters.

Definition at line 78 of file keyboard.hpp.

Constructor & Destructor Documentation

◆ OnScreenKeyboard()

OnScreenKeyboard::OnScreenKeyboard ( )
default

◆ ~OnScreenKeyboard()

OnScreenKeyboard::~OnScreenKeyboard ( )
default

Member Function Documentation

◆ evaluateInput()

int OnScreenKeyboard::evaluateInput ( touchPosition * touch)

Checks a touch input against the keyboard positions and returns pressed charcater.

Parameters
touchThe 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.

Member Data Documentation

◆ isCapsLock

bool OnScreenKeyboard::isCapsLock = false
private

Definition at line 98 of file keyboard.hpp.

◆ isShift

bool OnScreenKeyboard::isShift = false
private

Definition at line 99 of file keyboard.hpp.

◆ keyboardRows

KeyRow OnScreenKeyboard::keyboardRows[6]
private

Definition at line 101 of file keyboard.hpp.


The documentation for this class was generated from the following files: