In Windows, users may swapped mouse button to make physical right button to be considered as left button, and vice versa. This feature is to support left-handled people. And if you need to detect this possibility (like after you detect a mouse button is pressed, like in this code snippet), you can use the following code.
uses ... , Windows ... ; (* This function returns true if the mouse buttons are swapped *) function IsMouseBtnSwapped: Boolean; begin Result := GetSystemMetrics(SM_SWAPBUTTON) <> 0; end;
Edited by LuthfiHakim, 22 February 2013 - 01:33 AM.