MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / deepCopy

Function deepCopy

7DFPS/js/gamepad_uncompressed.js:42–63  ·  view source on GitHub ↗
(into, from)

Source from the content-addressed store, hash-verified

40 };
41
42 var deepCopy = function(into, from) {
43 into.leftStickX = from.leftStickX;
44 into.leftStickY = from.leftStickY;
45 into.rightStickX = from.rightStickX;
46 into.rightStickY = from.rightStickY;
47 into.faceButton0 = from.faceButton0;
48 into.faceButton1 = from.faceButton1;
49 into.faceButton2 = from.faceButton2;
50 into.faceButton3 = from.faceButton3;
51 into.leftShoulder0 = from.leftShoulder0;
52 into.rightShoulder0 = from.rightShoulder0;
53 into.leftShoulder1 = from.leftShoulder1;
54 into.rightShoulder1 = from.rightShoulder1;
55 into.select = from.select;
56 into.start = from.start;
57 into.leftStickButton = from.leftStickButton;
58 into.rightStickButton = from.rightStickButton;
59 into.dpadUp = from.dpadUp;
60 into.dpadDown = from.dpadDown;
61 into.dpadLeft = from.dpadLeft;
62 into.dpadRight = from.dpadRight;
63 };
64
65 var contains = function(lookIn, forWhat) { return lookIn.indexOf(forWhat) != -1; };
66 var userAgent = navigator.userAgent;

Callers 3

mapIndividualPadFunction · 0.70
mathbox-core.jsFile · 0.50
mathbox-bundle.jsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected