Members
-
inputPoints :Array
-
List of all active inputPoints.
- Source:
- See:
Methods
-
getInputPoint(parameters) → {Object}
-
Finds an inputPoint based on search parameters.
Parameters:Name Type Argument Description parametersString | Object <optional>
a string, or an object with identifier property. - Source:
{ Object } a inputPoint. -
getInputPointId(parameters) → {String}
-
Finds an inputPoint id based on search parameters.
Parameters:Name Type Argument Description parametersString | Object <optional>
a string, or an object with identifier property. - Source:
{ String } id. -
getInputPoints(properties, values) → {Array}
-
Finds all inputPoints based on properties and values.
Parameters:Name Type Description propertiesArray array of property names. valuesArray array of property values. - Source:
{ Array } list of input points that match. -
initMouse()
-
Initializes mouse and touch.
- Source:
- See:
-
inputPointMove(event, scale, boundsClient)
-
Repositions a inputPoint based on event, scale, and optionally, bounds.
Parameters:Name Type Argument Description eventEvent event object. scaleNumber scale to modify event position with. boundsClientObject <optional>
bounding client rect of canvas. - Source:
-
inputPressed(code)
-
Flags that an input has been pressed.
Parameters:Name Type Description codeString input code. - Source:
- See:
-
- ig.KEY
-
inputReleased(code)
-
Flags that an input has been released.
Parameters:Name Type Description codeString input code. - Source:
- See:
-
- ig.KEY
-
keycancel(event)
-
Cancels an input event.
Parameters:Name Type Description eventEvent - Source:
-
keydown()
-
Listener for when a key, mouse button, or touch is down.
Parameters:Name Type Description event.Event - Source:
- See:
-
keyup()
-
Listener for when a key, mouse button, or touch is up.
Parameters:Name Type Description event.Event - Source:
- See:
-
mousemove(event)
-
Repositions inputPoints based on event.
Parameters:Name Type Description eventEvent - Source:
-
removeInputPoint(parameters)
-
Removes an inputPoint from inputPoints based on search parameters.
Parameters:Name Type Argument Description parametersString | Object <optional>
a string, or an object with identifier property. - Source:
-
update()
-
Updates each input point to keep timed interactions accurate ( such as hold ).
- Source:

Impact++