Home Reference Source
import ShakeDetector from './ui/glpatch/shakedetect.js'
public class | source

ShakeDetector

Extends:

Events → ShakeDetector

detect shaking of ops to disconnect

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

lastShakeDir: boolean

public

shakeCountN: number

public

shakeCountP: number

public
public

shakeStartTime: number

public

shakeTimeOut: number

Method Summary

Public Methods
public

down(__x: *, __y: *, e: *)

public

move(a: *)

public

up()

Inherited Summary

From class Events
public

off: *

public

on: *

private
private
private

_log: *

private

_logEvents: boolean

private

_logName: string

public

addEventListener(which: *, cb: *, idPrefix: string): string

add event listener

public

emitEvent(which: string, param1: *, param2: *, param3: *, param4: *, param5: *, param6: *)

emit event

public

hasEventListener(id: *, cb: *): boolean

check event listener registration

public

hasListenerForEventName(eventName: *): boolean

check event listener by name

public

logEvents(enabled: boolean, logName: string)

enable/disable logging of events for the class

public

removeEventListener(id: *, cb: *)

rempve event listener registration

Public Constructors

public constructor() source

Override:

Events#constructor

Public Members

public lastShakeDir: boolean source

public shakeCountN: number source

public shakeCountP: number source

public shakeLastX: * source

public shakeStartTime: number source

public shakeTimeOut: number source

Public Methods

public down(__x: *, __y: *, e: *) source

Params:

NameTypeAttributeDescription
__x *
__y *
e *

public move(a: *) source

Params:

NameTypeAttributeDescription
a *

public up() source