Difference between revisions of "GetAltControl"

3 bytes added ,  09:49, 12 June 2008
→‎Notes: Fixed script to use 65535 io -1
imported>Haama
(→‎Notes: Removed short note)
imported>Haama
(→‎Notes: Fixed script to use 65535 io -1)
 
Line 21: Line 21:
<pre>short button
<pre>short button
set button to getAltControl 4 ; attack button
set button to getAltControl 4 ; attack button
if ( button != -1 )
if ( button != 65535 )
   set button to ( button - 255 ) / 256 + 256
   set button to ( button - 255 ) / 256 + 256
endif</pre>
endif</pre>
Anonymous user