AGIWiki/set.key

From ScummVM :: Wiki
< AGIWiki
Revision as of 20:02, 21 April 2013 by Sact (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


AGIWiki


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

Syntax

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

Remarks

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

Example

<syntax type = "C++"> set.key(0, 59, c1); //F1 to controller 1 set.key(9, 0, c2); //Tab key to controller 2 </syntax>

Technical Information

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

See also