Function:
SwapMouseButton(BOOLfSwap)

 

Description:
Alters the mapping used for the mouse buttons. Windows allows you to interpret left-button clicks as right-button clicks and vice versa.

 

Parameters:
BOOLfSwap: Determines the mouse button mapping. 0 means do not swap the buttons (left means left, right means right). 1 means swap the left and right buttons (left means right, right means left).

 

Returns:
1 if successful, or 0 if an error occured.

 

Example:
Click on the calc icon to view a sample of the SwapMouseButton function.