MCPcopy Create free account
hub / github.com/microsoft/SandDance / createInputInstance

Function createInputInstance

docs/app/js/sanddance-app.js:92836–92845  ·  view source on GitHub ↗

* create new input type manager * called by the Manager constructor * @param {Hammer} manager * @returns {Input}

(manager)

Source from the content-addressed store, hash-verified

92834 * @param {Hammer} manager
92835 * @returns {Input}
92836 */ function createInputInstance(manager) {
92837 var Type;
92838 var inputClass = manager.options.inputClass;
92839 if (inputClass) Type = inputClass;
92840 else if (SUPPORT_POINTER_EVENTS) Type = PointerEventInput;
92841 else if (SUPPORT_ONLY_TOUCH) Type = TouchInput;
92842 else if (!SUPPORT_TOUCH) Type = MouseInput;
92843 else Type = TouchMouseInput;
92844 return new Type(manager, inputHandler);
92845 }
92846 /**
92847 * handle input events
92848 * @param {Manager} manager

Callers 1

ManagerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected