Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Version 3 (modified by landauf, 8 years ago) (diff)

fixed links

InputBuffer

Derivative of orxonox::KeyHandler. Collects text input and stores it stream like.
In order to use an object of this class, you need to register non-argument void-return-type functions to a certain character (or all of them). Currently, the shell is the only user.

Features

Other than storing text, the InputBuffer also support automatic key repetition that can be configured with config values. Furthermore, copy and paste is supported.

Combination Effect
Ctrl + C Copies the entire buffer content to the clipboard
Ctrl + V Pastes the clipboard content in front of the cursor
Ctrl + X Copies all and clears
Shift + insert Like Ctrl + V
Shift + del Like Ctrl + X

Automatic key repetition

Does exactly what your operating system does normally. The values can be configured with keyRepeatDeleay_ and keyRepeatTime_.