From ScummVM :: Wiki
< AGIWiki
Revision as of 15:02, 25 October 2018 by Criezy (talk | contribs) (Text replacement - "<source lang=" to "<syntaxhighlight lang=")
Jump to navigation Jump to search


The set.key command assigns a keyboard shortcut to a controller.


set.key(byt A, byt B, ctl cC);


Multiple menu items and keys can be assigned to the same controller.

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 AGIWiki/Setting Up Keyboard Shortcuts topic.


<syntaxhighlight lang="cpp"> set.key(0, 59, c1); //F1 to controller 1 set.key(9, 0, c2); //Tab key to controller 2 </source>

Technical Information

Required interpreter version Available in all AGI versions
Bytecode value 121 (0x79 hex)

See also