DefaultKeyboardStringReaderΒΆ
Warning
This documentation is for an implementation of a service. This class is not meant to be used directly; instead use the Protogame.IKeyboardStringReader service via dependency injection to access this functionality.
Information documented here may not be up to date.
-
class
DefaultKeyboardStringReader
: System.Object, Protogame.IKeyboardStringReader The default implementation of T:Protogame.IKeyboardStringReader.
-
int
FirstRepeatKeyInterval
The amount of time in milliseconds a key needs to be held down to repeat for the first time.
Value: The first repeat key interval.
-
int
RepeatKeyInterval
The amount of time in milliseconds a key needs to be held down to repeat for the second time and beyond.
Value: The repeat key interval.
-
public void
Process
(Microsoft.Xna.Framework.Input.Keys[] pressedKeys, GameTime time, System.Text.StringBuilder text) Process the current keyboard state and add or remove characters from the given StringBuilder.
Parameters: - pressedKeys (Microsoft.Xna.Framework.Input.Keys[]) β
- time (Microsoft.Xna.Framework.GameTime) β Current GameTime.
- text (System.Text.StringBuilder) β The StringBuilder to be modified based on keyboard state.
-
int