fg_kbtest()

Win32 DirectX Fastgraph/Light

Prototype

int fg_kbtest (int scan_code);

Function fg_kbtest (ByVal scan_code As Long) As Long

function fg_kbtest (scan_code : integer) : integer;

Description

The fg_kbtest() function determines if the key having the specified scan code is now pressed or released.

Parameters

scan_code is the scan code of the key to check, or zero. If scan_code is zero, fg_kbtest() reports whether any key is pressed.

Return value

0 = The key is released

1 = The key is pressed

Restrictions

none

Examples

Columns, Cube, KBdemo, TMcube, TMcubeX, Tunnel

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.