smk::Input::CharacterListenerInterface Class Referenceabstract

#include <Input.hpp>

Inheritance diagram for smk::Input::CharacterListenerInterface:

Receive characters typed from the keyboard. All the keyboard modifiers are applied (Shift, Ctrl, Alt, ...). Useful for implementing input boxes. More...

Description

Receive characters typed from the keyboard. All the keyboard modifiers are applied (Shift, Ctrl, Alt, ...). Useful for implementing input boxes.

Usage:

// Initialization
auto listener = input.MakeCharacterListener();
// Main loop.
wchar_t character;
while(listener->Receive(&character))
character_typed += character;

Definition at line 113 of file Input.hpp.

Public Member Functions

virtual bool Receive (wchar_t *in)=0
 

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