| Package | funnel.ui |
| Class | public class Accelerometer |
| Inheritance | Accelerometer PhysicalInput |
| Property | Defined by | ||
|---|---|---|---|
| rotationX : Number [read-only]
| Accelerometer | ||
| rotationY : Number [read-only]
| Accelerometer | ||
| rotationZ : Number [read-only]
| Accelerometer | ||
| x : Number [read-only]
| Accelerometer | ||
| y : Number [read-only]
| Accelerometer | ||
| z : Number [read-only]
| Accelerometer | ||
| Method | Defined by | ||
|---|---|---|---|
|
| Accelerometer | ||
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
| PhysicalInput | |
![]() |
dispatchEvent(evt:Event):Boolean
| PhysicalInput | |
![]() |
hasEventListener(type:String):Boolean
| PhysicalInput | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
| PhysicalInput | |
|
setRangeFor(axis:uint, minimum:Number, maximum:Number):void
| Accelerometer | ||
![]() |
willTrigger(type:String):Boolean
| PhysicalInput | |
| Constant | Defined by | ||
|---|---|---|---|
| X_AXIS : uint = 0 [static]
| Accelerometer | ||
| Y_AXIS : uint = 1 [static]
| Accelerometer | ||
| Z_AXIS : uint = 2 [static]
| Accelerometer | ||
| rotationX | property |
rotationX:Number [read-only]Implementation
public function get rotationX():Number
| rotationY | property |
rotationY:Number [read-only]Implementation
public function get rotationY():Number
| rotationZ | property |
rotationZ:Number [read-only]Implementation
public function get rotationZ():Number
| x | property |
x:Number [read-only]Implementation
public function get x():Number
| y | property |
y:Number [read-only]Implementation
public function get y():Number
| z | property |
z:Number [read-only]Implementation
public function get z():Number
| Accelerometer | () | constructor |
public function Accelerometer(xPin:Pin, yPin:Pin, zPin:Pin, smoothing:Boolean = true)Parameters
xPin:Pin — the pin number of the x-axis pin
|
|
yPin:Pin — the pin number of the y-axis pin
|
|
zPin:Pin — the pin number of the z-axis pin
|
|
smoothing:Boolean (default = true) — enable smoothing (defailt is true)
|
— least one axis should be NOT null"))
|
| setRangeFor | () | method |
public function setRangeFor(axis:uint, minimum:Number, maximum:Number):voidParameters
axis:uint — the axis to set new range (X_AXIS, Y_AXIS or Z_AXIS)
|
|
minimum:Number — the new minimum value
|
|
maximum:Number — the new maximum value
|
| X_AXIS | constant |
public static const X_AXIS:uint = 0
| Y_AXIS | constant |
public static const Y_AXIS:uint = 1
| Z_AXIS | constant |
public static const Z_AXIS:uint = 2