|
KeyState | |
State = KeyState(ScanCodeValue) | |
Parameters: ScanCodeValue = The scan code value of the key you wish to check |
|
Returns: State = The state of the key (0= up, 1 = pressed) |
|
The KeySate function returns the current state (pressed or not) of any key upon your keyboard. If the key is being pressed the KeyState will return a value of 1 (True) or zero is it's not. It's important to understand that KeyState uses the scan code key values and NOT an ASC II characters values. FACTS: * Using KeyState you can detect when more than one key is being pressed. However most keyboards have limits on the number of keys that can simultaneously held down. * See KeyBoardState to return the state of all keys Mini Tutorial: This example uses reads the state of a bunch of keys using KeyState.
|
Related Info: | Inkey$ | Input | KeyBoardState | Scancode : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |