PageSourceSearch

https://salonarte2024.web.app/gdjs-evtsext__spritemultitouchjoystick__isdirectionpushed8way-func.js

js salonarte2024.web.app collected 2026-10-03 12:38:36 UTC 4,671 bytes, 100 lines download raw bytes

1
2if (typeof gdjs.evtsExt__SpriteMultitouchJoystick__IsDirectionPushed8Way !== "undefined") {
3  gdjs.evtsExt__SpriteMultitouchJoystick__IsDirectionPushed8Way.registeredGdjsCallbacks.forEach(callback =>
4    gdjs._unregisterCallback(callback)
5  );
6}
7
8gdjs.evtsExt__SpriteMultitouchJoystick__IsDirectionPushed8Way = {};
9
10
11gdjs.evtsExt__SpriteMultitouchJoystick__IsDirectionPushed8Way.eventsList0 = function(runtimeScene, eventsFunctionContext) {
12
13{
14
15
16
17}
18
19
20{
21
22
23let isConditionTrue_0 = false;
24isConditionTrue_0 = false;
25isConditionTrue_0 = 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)) > gdjs.evtsExt__SpriteMultitouchJoystick__DeadZone.func(runtimeScene, (typeof eventsFunctionContext !== 'undefined' ? Number(eventsFunctionContext.getArgument("ControllerIdentifier")) || 0 : 0), (typeof eventsFunctionContext !== 'undefined' ? "" + eventsFunctionContext.getArgument("JoystickIdentifier") : ""), (typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined));
26if (isConditionTrue_0) {
27isConditionTrue_0 = false;
28isConditionTrue_0 = gdjs.evtsExt__SpriteMultitouchJoystick__IsAngleIn8WayDirection.func(runtimeScene, 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)), (typeof eventsFunctionContext !== 'undefined' ? "" + eventsFunctionContext.getArgument("Direction") : ""), (typeof eventsFunctionContext !== 'undefined' ? eventsFunctionContext : undefined));
29}
30if (isConditionTrue_0) {
31{if (typeof eventsFunctionContext !== 'undefined') { eventsFunctionContext.returnValue = true; }}}
32
33}
34
35
36};
37
38gdjs.evtsExt__SpriteMultitouchJoystick__IsDirectionPushed8Way.func = function(runtimeScene, ControllerIdentifier, JoystickIdentifier, Direction, parentEventsFunctionContext) {
39var eventsFunctionContext = {
40  _objectsMap: {
41},
42  _objectArraysMap: {
43},
44  _behaviorNamesMap: {
45},
46  globalVariablesForExtension: runtimeScene.getGame().getVariablesForExtension("SpriteMultitouchJoystick"),
47  sceneVariablesForExtension: runtimeScene.getScene().getVariablesForExtension("SpriteMultitouchJoystick"),
48  localVariables: [],
49  getObjects: function(objectName) {
50    return eventsFunctionContext._objectArraysMap[objectName] || [];
51  },
52  getObjectsLists: function(objectName) {
53    return eventsFunctionContext._objectsMap[objectName] || null;
54  },
55  getBehaviorName: function(behaviorName) {
56    return eventsFunctionContext._behaviorNamesMap[behaviorName] || behaviorName;
57  },
58  createObject: function(objectName) {
59    const objectsList = eventsFunctionContext._objectsMap[objectName];
60    if (objectsList) {
61      const object = parentEventsFunctionContext ?
62        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
63        runtimeScene.createObject(objectsList.firstKey());
64      if (object) {
65        objectsList.get(objectsList.firstKey()).push(object);
66        eventsFunctionContext._objectArraysMap[objectName].push(object);
67      }
68      return object;    }
69    return null;
70  },
71  getInstancesCountOnScene: function(objectName) {
72    const objectsList = eventsFunctionContext._objectsMap[objectName];
73    let count = 0;
74    if (objectsList) {
75      for(const objectName in objectsList.items)
76        count += parentEventsFunctionContext ?
77parentEventsFunctionContext.getInstancesCountOnScene(objectName) :
78        runtimeScene.getInstancesCountOnScene(objectName);
79    }
80    return count;
81  },
82  getLayer: function(layerName) {
83    return runtimeScene.getLayer(layerName);
84  },
85  getArgument: function(argName) {
86if (argName === "ControllerIdentifier") return ControllerIdentifier;
87if (argName === "JoystickIdentifier") return JoystickIdentifier;
88if (argName === "Direction") return Direction;
89    return "";
90  },
91  getOnceTriggers: function() { return runtimeScene.getOnceTriggers(); }
92};
93
94
95gdjs.evtsExt__SpriteMultitouchJoystick__IsDirectionPushed8Way.eventsList0(runtimeScene, eventsFunctionContext);
96
97return !!eventsFunctionContext.returnValue;
98}
99
100gdjs.evtsExt__SpriteMultitouchJoystick__IsDirectionPushed8Way.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.