BRender x86 Installation Guide:Platform- Specific Functions:4.4 Keyboard Handling
Next|Prev|Up
DOSKeyBegin()
DOSKeyTest()
DOSKeyEnableBIOS()
DOSKeyEnd()

4.4 Keyboard Handling



DOSKeyBegin()

Description:
Initialise keyboard handling. Standard C keyboard handling functions will be disabled unless DOSKeyEnableBIOS() is called subsequently.

Declaration:
void DOSKeyBegin(void);


DOSKeyTest()

Description:
Scan the keyboard for a key selection.

Declaration:
br_uint_8 DOSKeyTest(br_uint_8 scancode,br_uint_8 qualifiers, br_uint_8 repeats);

Arguments:
br_uint_8 scancode

Keyboard scancode as detailed in keyboard.h (eg. SC_A, SC_B etc.).

br_uint_8 qualifiers

Shift qualifier, or qualifier combination, to select required SHIFT/CTRL/ALT key combination. See definitions below.

br_uint_8 repeats

Specifies auto repeat key setting.

Result :
br_uint_8

Returns TRUE if specified key, or key combination, has been pressed.

Remarks:
The following shift qualifiers are defined in keyboard.h:

QUAL_SHIFT 0x01

QUAL_CTRL 0x02

QUAL_SHIFT 0x01

QUAL_CTRL 0x02

QUAL_SHIFT 0x01

QUAL_CTRL 0x02

If 0 is specified, key will be detected whatever the status of the qualifier keys.

The following repeat control qualifiers are defined in keyboard.h:

REPT_FIRST_DOWN 0x10

REPT_AUTO_REPT 0x20

If 0 is specified, always returns TRUE while key is pressed.


DOSKeyEnableBIOS()

Description:
Once DOSKeyBegin() has been called, standard C keyboard handling functions will be disabled unless this function is called.

Declaration:
void DOSKeyEnableBIOS(br_uint_16 flag);

Arguments:
br_uint_16 flag

A non-zero value enables standard C keyboard handling functions. Zero disables them.


DOSKeyEnd()

Description:
End keyboard handling support.

Declaration:
void DOSKeyEnd(void);


Generated with
CERN WebMaker