Key Class
Key.getCode(controllerIdx:Number) Key.getAscii(controllerIdx:Number) Key.isDown(controllerIdx:Number) Key.isToggled(controllerIdx:Number)
The Key class methods take an optional parameter for the keyboard/controller. If not specified, then controllerIdx will default to 0.
Key.onKeyDown(controllerIdx:Number)
The Key listener method onKeyDown can receive an extra parameter for the keyboard/controller that generated the event.
Selection Class
Selection.setFocus(ch:Object, controllerIdx:Number) Selection.getFocus(controllerIdx:Number) Selection.getBeginIndex(controllerIdx:Number) Selection.getEndIndex(controllerIdx:Number) Selection.setSelection(start:Number, end:Number, controllerIdx:Number) Selection.getCaretIndex(controllerIdx:Number)
The Selection class methods take an optional parameter for the keyboard/controller. If not specified, then controllerIdx will default to 0.
Selection.onSetFocus(old:Object, new:Object, controllerIdx:Number)
The Selection listener method onSetFocus can receive an extra parameter for the keyboard/controller that generated the event.
MovieClip/Button/TextField
MovieClip.onSetFocus(old:Object, controllerIdx:Number) MovieClip.onKillFocus(new:Object, controllerIdx:Number) Button.onSetFocus(old:Object, controllerIdx:Number) Button.onKillFocus(new:Object, controllerIdx:Number) TextField.onSetFocus(old:Object, controllerIdx:Number) TextField.onKillFocus(new:Object, controllerIdx:Number) TextField.onChanged(controllerIdx:Number)
These MovieClip/Button/TextField listener methods can receive an extra parameter for the keyboard/controller that generated the event.
System.capabilities
System.capabilities.numControllers – Returns the number of controllers detected in the system.