Packageua.table.gamepad
Interfacepublic interface IGamepadListener

By implementing this interface your class can be controlled by DeviceGamepad.

For each movement event (left, right, up and down) and action event (fire, switch weapon) there are 2 methods starting with start and stop prefixed, which called when corresponding event takes place.

See also

DeviceGamepad.verticalDirection()
DeviceGamepad.horizontalDirection()
DeviceGamepad.isFireOn()
DeviceGamepad.isSwitchOn()


Public Methods
 MethodDefined By
  
startDown():void
IGamepadListener
  
startFire():void
IGamepadListener
  
startLeft():void
IGamepadListener
  
startRight():void
IGamepadListener
  
IGamepadListener
  
startUp():void
IGamepadListener
  
stopDown():void
IGamepadListener
  
stopFire():void
IGamepadListener
  
stopLeft():void
IGamepadListener
  
stopRight():void
IGamepadListener
  
stopSwitch():void
IGamepadListener
  
stopUp():void
IGamepadListener
Method Detail
startDown()method
public function startDown():void

startFire()method 
public function startFire():void

startLeft()method 
public function startLeft():void

startRight()method 
public function startRight():void

startSwitch()method 
public function startSwitch():void

startUp()method 
public function startUp():void

stopDown()method 
public function stopDown():void

stopFire()method 
public function stopFire():void

stopLeft()method 
public function stopLeft():void

stopRight()method 
public function stopRight():void

stopSwitch()method 
public function stopSwitch():void

stopUp()method 
public function stopUp():void