Difference between revisions of "GetAltControl"
revert
imported>FtlQ5j m |
imported>Entim (revert) |
||
|
==Notes==
* This function returns a number which is (255
* 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 you want to know which keyboard key, if any, is bound to a control, use [[GetControl]].
set button to getAltControl 4 ; attack button
if ( button != -1 )
set button to ( button - 255 ) / 256
endif</pre>
| |||