Package | flash.ui |
Class | public final class GameInputControlType |
Inheritance | GameInputControlType Object |
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 3 |
GameInputControlType
class defines a list of constants
used to specify the types of controls described by an input device.
Related API Elements
flash.ui.GameInputDevice
flash.ui.GameInputControl
flash.ui.GameInputHand
flash.ui.GameInputFinger
flash.events.GameInputEvent
Constant | Defined By | ||
---|---|---|---|
ACCELERATION : String = "acceleration" [static]
Represents an accelerometer control. | GameInputControlType | ||
BUTTON : String = "button" [static]
Represents a button control. | GameInputControlType | ||
DIRECTION : String = "direction" [static]
Represents a control that specifies a limited number of directions,
such as a D-Pad. | GameInputControlType | ||
MOVEMENT : String = "movement" [static]
Represents a control that is useful for motion. | GameInputControlType | ||
ROTATION : String = "rotation" [static]
Represents a control that is useful for rotation. | GameInputControlType | ||
TRIGGER : String = "trigger" [static]
Represents a control used for single values. | GameInputControlType |
ACCELERATION | Constant |
public static const ACCELERATION:String = "acceleration"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 3 |
Represents an accelerometer control. The acceleration values are
in standard g-force units: (9.8m/sec/sec). These values are
relative and are not bounded. If the device supports more than one
axis, each axis is returned in the value. The x
-axis is
index 0, y
is index 1, and z
is index 2.
BUTTON | Constant |
public static const BUTTON:String = "button"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 3 |
Represents a button control. Buttons are either up or pressed. When pressed the value is 1.0, when up the value is 0.0.
DIRECTION | Constant |
public static const DIRECTION:String = "direction"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 3 |
Represents a control that specifies a limited number of directions,
such as a D-Pad. If the device supports more than one axis, each axis
is returned in the value. The x
-axis is index 0,
y
is index 1, and z
is index 2.
Values can be -1.0, 0.0, or 1.0.
MOVEMENT | Constant |
public static const MOVEMENT:String = "movement"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 3 |
Represents a control that is useful for motion. If the device
supports more than one axis, each axis is returned in the value.
the x
-axis is index 0, the y
-axis is index 1, and
the z
-axis is index 2. Values can range from -1.0 to 1.0 for
each axis.
ROTATION | Constant |
public static const ROTATION:String = "rotation"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 3 |
Represents a control that is useful for rotation. It has an
x,y,z value. If the device supports more than one axis, each axis is
returned in the value. The x
-axis is index 0,
y
is index 1, and z
is index 2. Values can
range from -1.0 to 1.0 for each axis.
TRIGGER | Constant |
public static const TRIGGER:String = "trigger"
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 3 |
Represents a control used for single values. For example, a trigger could be used for throttle. The harder you press, the larger the number. The float values for each are normalized from -1.0 to 1.0.
Mon Nov 28 2011, 06:48 AM -08:00