Difference between revisions of "GetAltControl"

25 bytes removed ,  21:49, 19 April 2008
→‎Notes: Removed short note
imported>Entim
(duplicated link)
imported>Haama
(→‎Notes: Removed short note)
Line 16: Line 16:


* This function returns a number which is (255 + MouseButtonID*256). The left mouse button has an ID of 0, the right an ID of 1, the middle 2 and so on up to a maximum of 7.
* This function returns a number which is (255 + MouseButtonID*256). The left mouse button has an ID of 0, the right an ID of 1, the middle 2 and so on up to a maximum of 7.
* If there is no button bound to the requested control, or if the requested control is not valid, this function will return 65535. (-1, if read as a short)
* If there is no button bound to the requested control, or if the requested control is not valid, this function will return 65535.
* If you want to know which keyboard key, if any, is bound to a control, use [[GetControl]].
* If you want to know which keyboard key, if any, is bound to a control, use [[GetControl]].
* To convert the value returned by [[GetAltControl]] to a DX scancode usable with [[IsKeyPressed2]], do something like this:
* To convert the value returned by [[GetAltControl]] to a DX scancode usable with [[IsKeyPressed2]], do something like this:
Anonymous user