AGIWiki/Controller

From ScummVM :: Wiki
Jump to navigation Jump to search
AGIWiki


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

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