SwapMouseButton

Syntax

BOOL SwapMouseButton(bSwap)

This function reverses the meaning of left and right mouse buttons. If the bSwap parameter is TRUE, the left button generates right-button mouse messages and the right button generates left-button messages. If bSwap is FALSE, the buttons are restored to their original meaning.

Parameter Type/Description  

bSwap BOOL Specifies whether the button meanings are reversed or restored.  

Return Value

The return value specifies the outcome of the function. It is TRUE if the fuction reversed the meaning of the mouse buttons. Otherwise, it is FALSE.

Comments

Button swapping is provided as a convenience to people who use the mouse with their left hands. The SwapMouseButton function is usually called by the control panel only. Although applications are free to call the function, the mouse is a shared resource and reversing the meaning of the mouse button affects all applications.