|
GetInputActive | ||
ActiveState = GetInputActive(InputIndex) | ||
Parameters: InputIndex = The Input handler you wish to query |
||
Returns: ActiveState = The state of the input handler (0= input closed, 1= input active) |
||
The GetInputActive function gets the input state of an input handler. GetInputActive will return a False(0) when the input handler in not longer active (user has hit Enter during input) or True(1) when then the handler is ok to receive input. FACTS: * The GetInputActive function is part of the "Input" expansion library. Therefore in order to use GetInputActive 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 get the text from any input handler using the using the GetInputText() function. * You can manually set an input handlers active state using the InputActive() function * 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: | Input | KeyState | Mouse | NewInput | Scancode | StaticInput : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |