BRender x86 Installation Guide:Platform- Specific Functions:4.2 Mouse Handling Functions
Next|Prev|Up
DOSMouseBegin()
DOSMouseRead()
DOSMouseEnd()

4.2 Mouse Handling Functions



DOSMouseBegin()

Description:
Initialise mouse hardware. Must be called before DOSMouseRead().

Declaration:
void DOSMouseBegin(void);


DOSMouseRead()

Description:
Determine movement in the x and y directions, and the status of the mouse buttons (pressed or not pressed). Adds movement in x and y directions since last DOSMousRead() or DOSMouseBegin() to respective mouse parameters.

Declaration:
void DOSMouseRead(br_int_32 *mouse_x,br_int_32 *mouse_y, br_uint_32 *mouse_buttons);

Arguments:
br_int_32 *mouse_x

A pointer to a value used to track mouse movement in the x direction.

br_int_32 *mouse_y

A pointer to a value used to track mouse movement in the y direction.

br_uint_32 *mouse_buttons

A pointer to a variable used to monitor the status of the mouse buttons. Compare mouse_buttons with BR_MSM_BUTTONSL, BR_MSM_BUTTONSR and BR_MSM_BUTTONSM to determine mouse button status.


DOSMouseEnd()

Description:
End mouse support.

Declaration:
void DOSMouseEnd(void);


Generated with
CERN WebMaker