|
Input | ||
State = Input(InputIndex) | ||
Parameters: InputIndex = The Input handler you wish to query |
||
Returns: State = The input handlers state |
||
The Input function poll an asynchronous input handler for any new text input this update. FACTS: * The Input function is part of the "Input" expansion library. Therefore in order to use Input in program you need to include that library in your project. To do so, place I.e. #include "Input" at the top of the your program. * You can query the input handler state using the GetInputActive function. When the user presses Enter the handler will deactivate itself. * Need an old school Input replacement, see the StaticInput function Mini Tutorial: This example demonstrates the use of asynchronous input. The demo just sets up an input handler and render loop. The loop will execute until the input handler is no longer active (the user pressed Enter). It will then display the entered text message before exiting. The interesting thing about this is that since we control the input loop, we can draw pretty much anything you like while input is taking place. Which is represented by a moving circle.
This example would output.
|
Related Info: | GetInputActive | GetInputText | KeyState | Mouse | NewInput | Scancode | StaticInput : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |