Difference between revisions of "AGIWiki/Controller"

From ScummVM :: Wiki
Jump to navigation Jump to search
(Created page with "{{AGIWiki}} ''This article refers Controllers as part of an AGI game. For information about the controller command, see Controller command.'' Con...")
 
Line 11: Line 11:
== Data types ==
== Data types ==


* Data types
{{AGIWiki/Data types}}
** [[AGIWiki/Number|Numbers]]
** [[AGIWiki/Variable|Variables]]
*** [[AGIWiki/Special variables|Special variables]]
** [[AGIWiki/Flag|Flags]]
*** [[AGIWiki/Special flags|Special flags]]
** [[AGIWiki/Message|Messages]]
** [[AGIWiki/Animated object|Animated objects]]
** [[AGIWiki/Inventory items|Inventory items]]
** [[AGIWiki/String|Strings]]
** [[AGIWiki/index.php/Word|Words]]
** [[AGIWiki/Controller|Controllers]]

Revision as of 14:29, 31 March 2013

AGIWiki


This article refers Controllers as part of an AGI game. For information about the controller command, see Controller command.

Controllers are used by AGI to take specific actions based on menu selections or keyboard input, such as pressing function keys, or control key combinations. There are 50 controllers available to AGI, numbered 0 to 49. Controllers can be assigned to keyboard combinations (using the set.key command), or to menu items (using the set.menu.item command).

It is possible to assign more than one key combination or menu to the same controller.

To determine if a particular controller has been activated, use the controller test command. The controller test returns TRUE if the key combination associated with the controller has been pressed (or the menu item has been selected, if the controller has been assigned to a menu item).

Data types