1 2if (typeof gdjs.evtsExt__SpriteMultitouchJoystick__StickForceX !== "undefined") { 3 gdjs.evtsExt__SpriteMultitouchJoystick__StickForceX.registeredGdjsCallbacks.forEach(callback => 4 gdjs._unregisterCallback(callback) 5 ); 6} 7 8gdjs.evtsExt__SpriteMultitouchJoystick__StickForceX = {}; 9 10 11gdjs.evtsExt__SpriteMultitouchJoystick__StickForceX.eventsList0 = function(runtimeScene, eventsFunctionContext) { 12 13{ 14 15 16let isConditionTrue_0 = false; 17{ 18{if (typeof eventsFunctionContext !== 'undefined') { eventsFunctionContext.returnValue = gdjs.evtsExt__SpriteMultitouchJoystick__JoystickForce.func(runtimeScene, (typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("ControllerIdentifier")) || 0 : 0), (typeof eventsFunctionContext !== 'undefined' ? "" + eventsFunctionContext.getArgument("JoystickIdentifier") : ""), (typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined)) * Math.cos(gdjs.toRad(gdjs.evtsExt__SpriteMultitouchJoystick__JoystickAngle.func(runtimeScene, (typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("ControllerIdentifier")) || 0 : 0), (typeof eventsFunctionContext !== 'undefined' ? "" + eventsFunctionContext.getArgument("JoystickIdentifier") : ""), (typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined)))); }}} 19 20} 21 22 23}; 24 25gdjs.evtsExt__SpriteMultitouchJoystick__StickForceX.func = function(runtimeScene, ControllerIdentifier, JoystickIdentifier, parentEventsFunctionContext) { 26var eventsFunctionContext = { 27 _objectsMap: { 28}, 29 _objectArraysMap: { 30}, 31 _behaviorNamesMap: { 32}, 33 globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("SpriteMultitouchJoystick"), 34 sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("SpriteMultitouchJoystick"), 35 localVariables: [], 36 getObjects: function(objectName) { 37 return eventsFunctionContext._objectArraysMap[objectName] || []; 38 }, 39 getObjectsLists: function(objectName) { 40 return eventsFunctionContext._objectsMap[objectName] || null; 41 }, 42 getBehaviorName: function(behaviorName) { 43 return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName; 44 }, 45 createObject: function(objectName) { 46 const objectsList = eventsFunctionContext._objectsMap[objectName]; 47 if (objectsList) { 48 const object = parentEventsFunctionContext ? 49 parentEventsFunctionContext.createObject(objectsList.firstKey()) : 50 runtimeScene.createObject(objectsList.firstKey()); 51 if (object) { 52 objectsList.get(objectsList.firstKey()).push(object); 53 eventsFunctionContext._objectArraysMap[objectName].push(object); 54 } 55 return object; } 56 return null; 57 }, 58 getInstancesCountOnScene: function(objectName) { 59 const objectsList = eventsFunctionContext._objectsMap[objectName]; 60 let count = 0; 61 if (objectsList) { 62 for(const objectName in objectsList.items) 63 count += parentEventsFunctionContext ? 64parentEventsFunctionContext.getInstancesCountOnScene(objectName) : 65 runtimeScene.getInstancesCountOnScene(objectName); 66 } 67 return count; 68 }, 69 getLayer: function(layerName) { 70 return runtimeScene.getLayer(layerName); 71 }, 72 getArgument: function(argName) { 73if (argName === "ControllerIdentifier") return ControllerIdentifier; 74if (argName === "JoystickIdentifier") return JoystickIdentifier; 75 return ""; 76 }, 77 getOnceTriggers: function() { return runtimeScene.getOnceTriggers(); } 78}; 79 80 81gdjs.evtsExt__SpriteMultitouchJoystick__StickForceX.eventsList0(runtimeScene, eventsFunctionContext); 82 83return Number(eventsFunctionContext.returnValue) || 0; 84} 85 86gdjs.evtsExt__SpriteMultitouchJoystick__StickForceX.registeredGdjsCallbacks = [];
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.