BRender x86 Installation Guide:Platform- Specific Functions:4.6 Event Queue for Mouse/Keyboard
Next|Prev|Up
DOSEventBegin()
DOSEventWait()
DOSEventEnd()

4.6 Event Queue for Mouse/Keyboard



DOSEventBegin()

Description :
Initialise event queue handling for mouse and keyboard events. Events are queued until a DOSEventWait() command is encountered.

Declaration:
void DOSEventBegin(void);

Remarks:
Must be followed by DOSMouseBegin or DOSKeyBegin.


DOSEventWait()

Description :
Monitors mouse and keyboard activity. Stores information describing mouse and keyboard activity in an event queue.

br_uint_16 DOSEventWait(struct dosio_event *event, int block);

Arguments:
struct dosio_event * event

Structure for storing event information. Defined in eventq.h.

int block

If block is 0, return. If block is 1, wait until a mouse or keyboard event has occurred (always return TRUE).

Result :
br_uint_32

Returns TRUE if an event has occurred, FALSE otherwise.


DOSEventEnd()

Description:
End event queue handling.

Declaration:
void DOSEventEnd(void);


Generated with
CERN WebMaker