Difference between revisions of "AMOSi:Keyshift"

From Amiga Coding
Jump to: navigation, search
m (1 revision(s))
 
(bit codes into a table)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
</pre></code>
 
</pre></code>
  
Bit Key Tested<br /> 0   Left Shift 1   Right Shift 2   Caps Lock 3   Cntrl 4   Left Alt 5   Right Alt 6   Left Amiga 7   Right Amiga
+
 
 +
<table border=0>
 +
<tr><th>Bit</th><th>Key Tested</th></tr>
 +
<tr><td>0</td><td>Left Shift</td></tr>
 +
<tr><td>1</td><td>Right Shift</td></tr>
 +
<tr><td>2</td><td>Caps Lock</td></tr>
 +
<tr><td>3</td><td>Cntrl</td></tr>
 +
<tr><td>4</td><td>Left Alt</td></tr>
 +
<tr><td>5</td><td>Right Alt</td></tr>
 +
<tr><td>6</td><td>Left Amiga</td></tr>
 +
<tr><td>7</td><td>Right Amiga</td></tr>
 +
</table>

Latest revision as of 23:14, 19 November 2007

an example can be found on AMOSPro_Examples:Examples/H-4/Help_43.AMOS


Returns the status of special keys such as CNTRL,SHIFT,and ALT. The result is given as a bit-map in the following format.


keys=Key Shift


BitKey Tested
0Left Shift
1Right Shift
2Caps Lock
3Cntrl
4Left Alt
5Right Alt
6Left Amiga
7Right Amiga