Home Reference Source Test
import ClickController from 'seed-engine/src/component/ClickController.js'
public class | source

ClickController

Extends:

UpdateableComponentController → ClickController

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

Was the left button pressed on this click area?

public
public
public
public
public
public
public

Was the right button pressed on this click area?

public

Method Summary

Public Methods
public

onEnd()

public

Inherited Summary

From class Updateable
public
public
public
public

id: *

public

Cleanup code for when destroying an Updateable.

public

end()

Base call function for when this Updateable is to be ended.

public

onEnd()

Called when the object is being removed or cleaned up from usage.

public

Called when the object is intended to be paused.

public

Called when the the object is first introduced.

public

Called when the object is to be unpaused from paused state.

public

Called on every update within the game, once the object has had onStart called.

public

pause()

Base call function for when this Updateable is to be paused.

public

start()

Base call function for when this Updateable is to be started.

public

Base call function for when this Updateable is to be unpaused.

public

update()

Base call function for when this Updateable is to be updated.

From class Component
public
public
public

Called when the component is successfully added to a GameObject.

Public Constructors

public constructor() source

Constructor for Base Components. Requires a boolean to indicate if a GameObject can contain multiple components of this type.

Override:

Controller#constructor

Public Members

public className: string source

Override:

Component#className

public leftPressed: boolean source

Was the left button pressed on this click area?

public onLeftPressed: * source

public onLeftReleaseOutside: * source

public onLeftReleased: * source

public onRightPressed: * source

public onRightReleaseOutside: * source

public onRightReleased: * source

public rightPressed: boolean source

Was the right button pressed on this click area?

public viewportID: * source

Public Methods

public onEnd() source

Called when the object is being removed or cleaned up from usage.

Override:

Updateable#onEnd

public onUpdate() source

Called on every update within the game, once the object has had onStart called.

Override:

Updateable#onUpdate