TrustedUser
2,147
edits
(Created page with "__NOTOC__ {{AGIWiki}} The <code>set.key</code> command assigns a keyboard shortcut to a controller. == Syntax == : set.key(byt A, byt B, [[AGIW...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
{{AGIWiki}} | {{AGIWiki}} | ||
The <code>set.key</code> command assigns a keyboard shortcut to a [[AGIWiki/ | The <code>set.key</code> command assigns a keyboard shortcut to a [[AGIWiki/controller|controller]]. | ||
== Syntax == | == Syntax == | ||
Line 15: | Line 15: | ||
The key combination derived from codes A and B will be assigned to controller cC. | The key combination derived from codes A and B will be assigned to controller cC. | ||
A list of common keyboard assignments can be found in the [[Setting Up Keyboard Shortcuts]] topic. | A list of common keyboard assignments can be found in the [[AGIWiki/Setting Up Keyboard Shortcuts]] topic. | ||
== Example == | == Example == | ||
< | <syntaxhighlight lang="cpp"> | ||
set.key(0, 59, c1); //F1 to controller 1 | set.key(0, 59, c1); //F1 to controller 1 | ||
set.key(9, 0, c2); //Tab key to controller 2 | set.key(9, 0, c2); //Tab key to controller 2 | ||
</ | </syntaxhighlight> | ||
== Technical Information == | == Technical Information == | ||
Line 40: | Line 40: | ||
[[Category:AGIWiki/Logic Commands]] | [[Category:AGIWiki/Logic Commands]] | ||
[[Category:AGIWiki/Menu and Key Commands]] |