Navigation:  thinBasic Modules > UI (User Interface) > Keyboard >

GetAsyncKeyState

Previous pageReturn to chapter overviewNext page

 

Description

 

Determines whether a key is up or down at the time the function is called.

 

Syntax

 

n = GetAsyncKeyState(vKey)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

vKey

Number

No

Specifies one of 256 possible virtual-key codes. For more information, see Virtual-Key Codes

 

Remarks

 

Use GetAsyncKeyState with vKey equal to -1 to reset keys flags

 

Restrictions

 

See also

 

Examples

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com