Difference between revisions of "GetAltControl"
Jump to navigation
Jump to search
→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. | * 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: |