|How To Setup The Keyboard|
Supplemental Object Documentation
The Keyboard object is an input control which can control the environment.
Check is the primary method for returning any information sent from the keyboard.
Text returns the formatted buffer.
Setup and return the information within the text buffer.
The selected button returned as on or off.
The cursor buffer generated for the text buffer.
The following example is based upon the engine being initialized at which point the keyboard input is rendered with the font object.
' Game Basic 3D Engine Build 4096 ' Copyright © Monarke Studios. All Rights Reserved. Private Keyboard As New GameBasic3D.Keyboard ' Engine.Initialize Do ' Process and specify the text area size Keyboard.Process Width, Height ' Render the keyboard input Font.Render Keyboard.Text, X, Y Font.Render Keyboard.Cursor, X, Y ' Check for the selected input If Keyboard.Check(...) Then ' Preform Action End if Loop ' Engine.End Set Keyboard = Nothing
Please note that the objects, and other various effects that can help extend the example are not entirely present but assume you're already familiar working with them. Please refer to the other online content, and technical reference included with the installation for further documentation.