@n3rdw1z4rd/core 0.19.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +27 -10
  2. package/dist/graph/doc.d.ts +141 -0
  3. package/dist/graph/doc.js +173 -0
  4. package/dist/graph/evaluate.d.ts +114 -0
  5. package/dist/graph/evaluate.js +319 -0
  6. package/dist/graph/index.d.ts +9 -0
  7. package/dist/graph/index.js +9 -0
  8. package/dist/graph/node.d.ts +153 -0
  9. package/dist/graph/node.js +94 -0
  10. package/dist/graph/nodes.d.ts +11 -0
  11. package/dist/graph/nodes.js +399 -0
  12. package/dist/graph/script.d.ts +56 -0
  13. package/dist/graph/script.js +98 -0
  14. package/dist/graph/sources.d.ts +11 -0
  15. package/dist/graph/sources.js +263 -0
  16. package/dist/graph/subgraph.d.ts +36 -0
  17. package/dist/graph/subgraph.js +280 -0
  18. package/dist/graph/types.d.ts +56 -0
  19. package/dist/graph/types.js +67 -0
  20. package/dist/graph.cjs +1709 -0
  21. package/dist/graph.d.cts +568 -0
  22. package/dist/index.cjs +495 -207
  23. package/dist/index.d.cts +231 -49
  24. package/dist/index.d.ts +5 -4
  25. package/dist/index.js +4 -3
  26. package/dist/input/_input.d.ts +25 -0
  27. package/dist/input/_input.js +97 -0
  28. package/dist/input/action-map.d.ts +42 -7
  29. package/dist/input/action-map.js +44 -18
  30. package/dist/input/bindings.d.ts +1 -1
  31. package/dist/input/bindings.js +1 -1
  32. package/dist/input/gestures.d.ts +20 -2
  33. package/dist/input/gestures.js +34 -8
  34. package/dist/input/index.d.ts +5 -4
  35. package/dist/input/index.js +3 -2
  36. package/dist/input/input-action-map.d.ts +327 -0
  37. package/dist/input/input-action-map.js +689 -0
  38. package/dist/input/input.d.ts +77 -272
  39. package/dist/input/input.js +201 -653
  40. package/dist/rng-Dhqq7owV.cjs +642 -0
  41. package/dist/{spatial-partition-3d-Ba-VBveM.cjs → spatial-partition-3d-CmSCL87Z.cjs} +19 -660
  42. package/dist/three/adaptive-grid.d.ts +43 -0
  43. package/dist/three/adaptive-grid.js +127 -0
  44. package/dist/three/ecs.d.ts +5 -3
  45. package/dist/three/ecs.js +5 -3
  46. package/dist/three/editor-camera.d.ts +93 -0
  47. package/dist/three/editor-camera.js +174 -0
  48. package/dist/three/index.d.ts +6 -1
  49. package/dist/three/index.js +6 -1
  50. package/dist/three/picking.d.ts +34 -0
  51. package/dist/three/picking.js +59 -0
  52. package/dist/three/schema.d.ts +139 -0
  53. package/dist/three/schema.js +214 -0
  54. package/dist/three/world.d.ts +192 -0
  55. package/dist/three/world.js +363 -0
  56. package/dist/three.cjs +970 -23
  57. package/dist/three.d.cts +497 -5
  58. package/dist/vite.cjs +40 -0
  59. package/dist/vite.d.cts +35 -0
  60. package/dist/vite.d.ts +35 -0
  61. package/dist/vite.js +39 -0
  62. package/package.json +21 -1
@@ -6,6 +6,38 @@ import { Binding } from "./bindings.js";
6
6
  * @category Input
7
7
  */
8
8
  export declare const DEFAULT_DEADZONE = 0.2;
9
+ /**
10
+ * Auto-repeat timing for a held action, in ms: like a held key in a text field, the action
11
+ * presses again after `delay`, then every `interval`.
12
+ *
13
+ * @category Input
14
+ */
15
+ export interface ActionRepeat {
16
+ /** ms held before the first repeat */
17
+ delay: number;
18
+ /** ms between repeats after that */
19
+ interval: number;
20
+ }
21
+ /**
22
+ * Repeat timing used by `repeat: true`: first repeat after 400 ms, then every 100 ms.
23
+ *
24
+ * @category Input
25
+ */
26
+ export declare const DEFAULT_REPEAT: Readonly<ActionRepeat>;
27
+ /**
28
+ * Options for {@link ActionMap.add}.
29
+ *
30
+ * @category Input
31
+ */
32
+ export interface ActionOptions {
33
+ /** default {@link DEFAULT_DEADZONE} */
34
+ deadzone?: number;
35
+ /**
36
+ * auto-repeat while held: `true` for {@link DEFAULT_REPEAT}, timings to override it, or `false`
37
+ * for none (the default)
38
+ */
39
+ repeat?: boolean | Partial<ActionRepeat>;
40
+ }
9
41
  /**
10
42
  * A named action in an {@link ActionMap}.
11
43
  *
@@ -18,6 +50,8 @@ export interface Action {
18
50
  deadzone: number;
19
51
  /** inputs that trigger the action; the strongest one wins */
20
52
  readonly bindings: Binding[];
53
+ /** auto-repeat while held, see {@link InputActionMap.isActionJustPressed}; none if unset */
54
+ repeat?: ActionRepeat;
21
55
  }
22
56
  /**
23
57
  * The serialized form of an {@link ActionMap} (from {@link ActionMap.toJSON}), keyed by action name.
@@ -29,10 +63,12 @@ export type ActionMapJSON = Record<string, {
29
63
  deadzone: number;
30
64
  /** the action's bindings, in order */
31
65
  bindings: Binding[];
66
+ /** see {@link Action.repeat} */
67
+ repeat?: ActionRepeat;
32
68
  }>;
33
69
  /**
34
- * Named actions and the inputs bound to them, like Godot's InputMap. Every {@link Input} has one as
35
- * {@link Input.actions}; the methods that change it return `this` for chaining.
70
+ * Named actions and the inputs bound to them, like Godot's InputMap. Every {@link InputActionMap} has one as
71
+ * {@link InputActionMap.actions}; the methods that change it return `this` for chaining.
36
72
  *
37
73
  * ```ts
38
74
  * input.actions
@@ -52,10 +88,8 @@ export declare class ActionMap {
52
88
  has(name: string): boolean;
53
89
  /** The action with this name, or `undefined`. */
54
90
  get(name: string): Action | undefined;
55
- /** Adds an action, or replaces its bindings (and deadzone, if given) if it exists. */
56
- add(name: string, bindings?: Binding[], options?: {
57
- deadzone?: number;
58
- }): this;
91
+ /** Adds an action, or replaces its bindings (and deadzone / repeat, if given) if it exists. */
92
+ add(name: string, bindings?: Binding[], options?: ActionOptions): this;
59
93
  /** Removes an action, if it exists. */
60
94
  remove(name: string): this;
61
95
  /** Adds a binding to an action (creating the action if needed); duplicates are ignored. */
@@ -72,7 +106,8 @@ export declare class ActionMap {
72
106
  load(json: ActionMapJSON): this;
73
107
  /**
74
108
  * Godot-style `ui_*` actions for menus and dialogs (`ui_accept`, `ui_cancel`, `ui_left`, `ui_right`,
75
- * `ui_up`, `ui_down`, `ui_page_up`, `ui_page_down`), with a 0.5 deadzone; replaces existing ones.
109
+ * `ui_up`, `ui_down`, `ui_page_up`, `ui_page_down`), with a 0.5 deadzone; the directions and
110
+ * page actions auto-repeat ({@link DEFAULT_REPEAT}). Replaces existing ones.
76
111
  */
77
112
  addDefaults(): this;
78
113
  }
@@ -7,8 +7,17 @@ import { bindingsEqual, key, pad, padAxis } from "./bindings.js";
7
7
  */
8
8
  const DEFAULT_DEADZONE = .2;
9
9
  /**
10
- * Named actions and the inputs bound to them, like Godot's InputMap. Every {@link Input} has one as
11
- * {@link Input.actions}; the methods that change it return `this` for chaining.
10
+ * Repeat timing used by `repeat: true`: first repeat after 400 ms, then every 100 ms.
11
+ *
12
+ * @category Input
13
+ */
14
+ const DEFAULT_REPEAT = {
15
+ delay: 400,
16
+ interval: 100
17
+ };
18
+ /**
19
+ * Named actions and the inputs bound to them, like Godot's InputMap. Every {@link InputActionMap} has one as
20
+ * {@link InputActionMap.actions}; the methods that change it return `this` for chaining.
12
21
  *
13
22
  * ```ts
14
23
  * input.actions
@@ -34,14 +43,20 @@ var ActionMap = class {
34
43
  get(name) {
35
44
  return this._actions.get(name);
36
45
  }
37
- /** Adds an action, or replaces its bindings (and deadzone, if given) if it exists. */
46
+ /** Adds an action, or replaces its bindings (and deadzone / repeat, if given) if it exists. */
38
47
  add(name, bindings = [], options = {}) {
39
48
  const existing = this._actions.get(name);
40
- this._actions.set(name, {
49
+ const repeat = options.repeat === void 0 ? existing?.repeat : options.repeat === false ? void 0 : {
50
+ ...DEFAULT_REPEAT,
51
+ ...options.repeat === true ? {} : options.repeat
52
+ };
53
+ const action = {
41
54
  name,
42
55
  deadzone: options.deadzone ?? existing?.deadzone ?? .2,
43
56
  bindings: [...bindings]
44
- });
57
+ };
58
+ if (repeat) action.repeat = repeat;
59
+ this._actions.set(name, action);
45
60
  return this;
46
61
  }
47
62
  /** Removes an action, if it exists. */
@@ -77,24 +92,35 @@ var ActionMap = class {
77
92
  /** A JSON-serializable copy of all actions, for saving rebinds; see {@link ActionMap.load}. */
78
93
  toJSON() {
79
94
  const json = {};
80
- for (const action of this._actions.values()) json[action.name] = {
81
- deadzone: action.deadzone,
82
- bindings: action.bindings.map((b) => ({ ...b }))
83
- };
95
+ for (const action of this._actions.values()) {
96
+ json[action.name] = {
97
+ deadzone: action.deadzone,
98
+ bindings: action.bindings.map((b) => ({ ...b }))
99
+ };
100
+ if (action.repeat) json[action.name].repeat = { ...action.repeat };
101
+ }
84
102
  return json;
85
103
  }
86
104
  /** Replaces all actions with the saved ones (e.g. a player's rebinds). */
87
105
  load(json) {
88
106
  this.clear();
89
- for (const [name, action] of Object.entries(json)) this.add(name, action.bindings, { deadzone: action.deadzone });
107
+ for (const [name, action] of Object.entries(json)) this.add(name, action.bindings, {
108
+ deadzone: action.deadzone,
109
+ repeat: action.repeat ?? false
110
+ });
90
111
  return this;
91
112
  }
92
113
  /**
93
114
  * Godot-style `ui_*` actions for menus and dialogs (`ui_accept`, `ui_cancel`, `ui_left`, `ui_right`,
94
- * `ui_up`, `ui_down`, `ui_page_up`, `ui_page_down`), with a 0.5 deadzone; replaces existing ones.
115
+ * `ui_up`, `ui_down`, `ui_page_up`, `ui_page_down`), with a 0.5 deadzone; the directions and
116
+ * page actions auto-repeat ({@link DEFAULT_REPEAT}). Replaces existing ones.
95
117
  */
96
118
  addDefaults() {
97
119
  const ui = { deadzone: .5 };
120
+ const nav = {
121
+ deadzone: .5,
122
+ repeat: true
123
+ };
98
124
  this.add("ui_accept", [
99
125
  key("Enter"),
100
126
  key("NumpadEnter"),
@@ -106,26 +132,26 @@ var ActionMap = class {
106
132
  key("ArrowLeft"),
107
133
  pad("DpadLeft"),
108
134
  padAxis("leftX", -1)
109
- ], ui);
135
+ ], nav);
110
136
  this.add("ui_right", [
111
137
  key("ArrowRight"),
112
138
  pad("DpadRight"),
113
139
  padAxis("leftX", 1)
114
- ], ui);
140
+ ], nav);
115
141
  this.add("ui_up", [
116
142
  key("ArrowUp"),
117
143
  pad("DpadUp"),
118
144
  padAxis("leftY", -1)
119
- ], ui);
145
+ ], nav);
120
146
  this.add("ui_down", [
121
147
  key("ArrowDown"),
122
148
  pad("DpadDown"),
123
149
  padAxis("leftY", 1)
124
- ], ui);
125
- this.add("ui_page_up", [key("PageUp"), pad("LB")], ui);
126
- this.add("ui_page_down", [key("PageDown"), pad("RB")], ui);
150
+ ], nav);
151
+ this.add("ui_page_up", [key("PageUp"), pad("LB")], nav);
152
+ this.add("ui_page_down", [key("PageDown"), pad("RB")], nav);
127
153
  return this;
128
154
  }
129
155
  };
130
156
  //#endregion
131
- export { ActionMap, DEFAULT_DEADZONE };
157
+ export { ActionMap, DEFAULT_DEADZONE, DEFAULT_REPEAT };
@@ -265,7 +265,7 @@ export declare function controlId(binding: Binding): string;
265
265
  export declare function bindingsEqual(a: Binding, b: Binding): boolean;
266
266
  /**
267
267
  * A readable name for a binding, e.g. for "Press Space to jump" prompts. Pass `keyLabels` (from
268
- * {@link Input.loadKeyboardLayout}) to name keys as printed on the player's keyboard.
268
+ * {@link InputActionMap.loadKeyboardLayout}) to name keys as printed on the player's keyboard.
269
269
  *
270
270
  * @category Input
271
271
  */
@@ -220,7 +220,7 @@ const AXIS_NAMES = {
220
220
  const capitalize = (s) => s.charAt(0).toUpperCase() + s.slice(1);
221
221
  /**
222
222
  * A readable name for a binding, e.g. for "Press Space to jump" prompts. Pass `keyLabels` (from
223
- * {@link Input.loadKeyboardLayout}) to name keys as printed on the player's keyboard.
223
+ * {@link InputActionMap.loadKeyboardLayout}) to name keys as printed on the player's keyboard.
224
224
  *
225
225
  * @category Input
226
226
  */
@@ -42,6 +42,21 @@ export interface GestureThresholds {
42
42
  /** relative scale change per frame that counts as pinching (0.005 = 0.5%, the default) */
43
43
  pinchMinChange: number;
44
44
  }
45
+ /**
46
+ * A recognized gesture and where it happened, in pixels: where the finger lifted for a tap or
47
+ * double tap, where it is held for a long press, where it started for a swipe, and the midpoint
48
+ * of the two fingers for a pinch.
49
+ *
50
+ * @category Input
51
+ */
52
+ export interface GestureEvent {
53
+ /** which gesture */
54
+ gesture: Gesture;
55
+ /** px */
56
+ x: number;
57
+ /** px */
58
+ y: number;
59
+ }
45
60
  /**
46
61
  * What {@link GestureRecognizer.update} recognized since the previous update.
47
62
  *
@@ -50,6 +65,8 @@ export interface GestureThresholds {
50
65
  export interface GestureFrame {
51
66
  /** recognized since the last update */
52
67
  gestures: Gesture[];
68
+ /** the same gestures, with positions */
69
+ events: GestureEvent[];
53
70
  /** two-finger scale change this frame (1 = none, > 1 = fingers apart) */
54
71
  pinch: number;
55
72
  /** two-finger movement this frame, px */
@@ -65,7 +82,7 @@ export interface GestureFrame {
65
82
  /**
66
83
  * Turns touch points into gestures: tap, double tap, long press, swipes (one finger) and
67
84
  * pinch / pan / rotate (two fingers). Feed it with down / move / up, call update() once per frame.
68
- * Times are in ms and positions in pixels, from any consistent clock and origin. {@link Input} drives
85
+ * Times are in ms and positions in pixels, from any consistent clock and origin. {@link InputActionMap} drives
69
86
  * one for you; use this class directly only for custom touch handling.
70
87
  *
71
88
  * Tap, double tap and swipe are reported when the finger lifts, long press while it is still held;
@@ -76,7 +93,8 @@ export interface GestureFrame {
76
93
  * el.addEventListener('pointerdown', e => recognizer.down(e.pointerId, e.offsetX, e.offsetY, performance.now()));
77
94
  * // ... move / up / cancel likewise
78
95
  *
79
- * const { gestures, pinch } = recognizer.update(performance.now());
96
+ * const { gestures, events, pinch } = recognizer.update(performance.now());
97
+ * const tap = events.find(e => e.gesture === 'tap'); // { gesture, x, y }
80
98
  * ```
81
99
  *
82
100
  * @category Input
@@ -12,7 +12,7 @@ const DEFAULT_THRESHOLDS = {
12
12
  /**
13
13
  * Turns touch points into gestures: tap, double tap, long press, swipes (one finger) and
14
14
  * pinch / pan / rotate (two fingers). Feed it with down / move / up, call update() once per frame.
15
- * Times are in ms and positions in pixels, from any consistent clock and origin. {@link Input} drives
15
+ * Times are in ms and positions in pixels, from any consistent clock and origin. {@link InputActionMap} drives
16
16
  * one for you; use this class directly only for custom touch handling.
17
17
  *
18
18
  * Tap, double tap and swipe are reported when the finger lifts, long press while it is still held;
@@ -23,7 +23,8 @@ const DEFAULT_THRESHOLDS = {
23
23
  * el.addEventListener('pointerdown', e => recognizer.down(e.pointerId, e.offsetX, e.offsetY, performance.now()));
24
24
  * // ... move / up / cancel likewise
25
25
  *
26
- * const { gestures, pinch } = recognizer.update(performance.now());
26
+ * const { gestures, events, pinch } = recognizer.update(performance.now());
27
+ * const tap = events.find(e => e.gesture === 'tap'); // { gesture, x, y }
27
28
  * ```
28
29
  *
29
30
  * @category Input
@@ -87,17 +88,32 @@ var GestureRecognizer = class {
87
88
  const dy = y - touch.startY;
88
89
  const distance = Math.hypot(dx, dy);
89
90
  if (duration <= t.tapMaxDuration && touch.maxMovement <= t.tapMaxMovement) {
90
- this._pending.push("tap");
91
+ this._pending.push({
92
+ gesture: "tap",
93
+ x,
94
+ y
95
+ });
91
96
  const last = this._lastTap;
92
97
  if (last && time - last.time <= t.doubleTapMaxDelay && Math.hypot(x - last.x, y - last.y) <= t.doubleTapMaxDistance) {
93
- this._pending.push("doubleTap");
98
+ this._pending.push({
99
+ gesture: "doubleTap",
100
+ x,
101
+ y
102
+ });
94
103
  this._lastTap = void 0;
95
104
  } else this._lastTap = {
96
105
  x,
97
106
  y,
98
107
  time
99
108
  };
100
- } else if (distance >= t.swipeMinDistance && duration <= t.swipeMaxDuration) this._pending.push(Math.abs(dx) >= Math.abs(dy) ? dx > 0 ? "swipeRight" : "swipeLeft" : dy > 0 ? "swipeDown" : "swipeUp");
109
+ } else if (distance >= t.swipeMinDistance && duration <= t.swipeMaxDuration) {
110
+ const gesture = Math.abs(dx) >= Math.abs(dy) ? dx > 0 ? "swipeRight" : "swipeLeft" : dy > 0 ? "swipeDown" : "swipeUp";
111
+ this._pending.push({
112
+ gesture,
113
+ x: touch.startX,
114
+ y: touch.startY
115
+ });
116
+ }
101
117
  }
102
118
  /** Forgets a finger without recognizing anything (e.g. on `pointercancel`). */
103
119
  cancel(id) {
@@ -114,6 +130,7 @@ var GestureRecognizer = class {
114
130
  update(time) {
115
131
  const frame = {
116
132
  gestures: [],
133
+ events: [],
117
134
  pinch: 1,
118
135
  pan: {
119
136
  x: 0,
@@ -123,7 +140,11 @@ var GestureRecognizer = class {
123
140
  };
124
141
  for (const touch of this._touches.values()) if (!touch.multi && !touch.longPressed && touch.maxMovement <= this.thresholds.tapMaxMovement && time - touch.startTime >= this.thresholds.longPressDuration) {
125
142
  touch.longPressed = true;
126
- this._pending.push("longPress");
143
+ this._pending.push({
144
+ gesture: "longPress",
145
+ x: touch.x,
146
+ y: touch.y
147
+ });
127
148
  }
128
149
  const [a, b] = [...this._touches.values()];
129
150
  if (a && b) {
@@ -139,7 +160,11 @@ var GestureRecognizer = class {
139
160
  y: cy - pair.cy
140
161
  };
141
162
  frame.rotate = Math.atan2(Math.sin(angle - pair.angle), Math.cos(angle - pair.angle));
142
- if (Math.abs(frame.pinch - 1) >= this.thresholds.pinchMinChange) this._pending.push(frame.pinch > 1 ? "pinchOut" : "pinchIn");
163
+ if (Math.abs(frame.pinch - 1) >= this.thresholds.pinchMinChange) this._pending.push({
164
+ gesture: frame.pinch > 1 ? "pinchOut" : "pinchIn",
165
+ x: cx,
166
+ y: cy
167
+ });
143
168
  }
144
169
  this._pair = {
145
170
  a: a.id,
@@ -150,7 +175,8 @@ var GestureRecognizer = class {
150
175
  cy
151
176
  };
152
177
  } else this._pair = void 0;
153
- frame.gestures = this._pending;
178
+ frame.events = this._pending;
179
+ frame.gestures = frame.events.map((e) => e.gesture);
154
180
  this._pending = [];
155
181
  return frame;
156
182
  }
@@ -1,5 +1,6 @@
1
1
  import { Binding, GAMEPAD_AXES, GAMEPAD_BUTTONS, GESTURES, GamepadAxis, GamepadButton, Gesture, GestureBinding, KeyBinding, KeyModifiers, MouseBinding, MouseButton, PadAxisBinding, PadBinding, WheelBinding, WheelDirection, XRAxis, XRAxisBinding, XRBinding, XRButton, XRHand, XR_AXES, XR_BUTTONS, bindingLabel, bindingsEqual, controlId, gesture, key, mouse, pad, padAxis, wheel, xr, xrAxis } from "./bindings.js";
2
- import { Action, ActionMap, ActionMapJSON, DEFAULT_DEADZONE } from "./action-map.js";
3
- import { GestureFrame, GestureRecognizer, GestureThresholds, TouchPoint } from "./gestures.js";
4
- import { ActionPhase, CaptureOptions, DeviceQuery, GamepadInfo, Input, InputDevice, InputDeviceType, InputOptions, PointerState, XRSessionLike } from "./input.js";
5
- export { Action, ActionMap, ActionMapJSON, ActionPhase, Binding, CaptureOptions, DEFAULT_DEADZONE, DeviceQuery, GAMEPAD_AXES, GAMEPAD_BUTTONS, GESTURES, GamepadAxis, GamepadButton, GamepadInfo, Gesture, GestureBinding, GestureFrame, GestureRecognizer, GestureThresholds, Input, InputDevice, InputDeviceType, InputOptions, KeyBinding, KeyModifiers, MouseBinding, MouseButton, PadAxisBinding, PadBinding, PointerState, TouchPoint, WheelBinding, WheelDirection, XRAxis, XRAxisBinding, XRBinding, XRButton, XRHand, XRSessionLike, XR_AXES, XR_BUTTONS, bindingLabel, bindingsEqual, controlId, gesture, key, mouse, pad, padAxis, wheel, xr, xrAxis };
2
+ import { Action, ActionMap, ActionMapJSON, ActionOptions, ActionRepeat, DEFAULT_DEADZONE, DEFAULT_REPEAT } from "./action-map.js";
3
+ import { GestureEvent, GestureFrame, GestureRecognizer, GestureThresholds, TouchPoint } from "./gestures.js";
4
+ import { Input, InputState } from "./input.js";
5
+ import { ActionEvent, ActionPhase, CaptureOptions, DeviceQuery, GamepadInfo, InputActionMap, InputActionMapOptions, InputDevice, InputDeviceType, PointerState, XRSessionLike } from "./input-action-map.js";
6
+ export { Action, ActionEvent, ActionMap, ActionMapJSON, ActionOptions, ActionPhase, ActionRepeat, Binding, CaptureOptions, DEFAULT_DEADZONE, DEFAULT_REPEAT, DeviceQuery, GAMEPAD_AXES, GAMEPAD_BUTTONS, GESTURES, GamepadAxis, GamepadButton, GamepadInfo, Gesture, GestureBinding, GestureEvent, GestureFrame, GestureRecognizer, GestureThresholds, Input, InputActionMap, InputActionMapOptions, InputDevice, InputDeviceType, InputState, KeyBinding, KeyModifiers, MouseBinding, MouseButton, PadAxisBinding, PadBinding, PointerState, TouchPoint, WheelBinding, WheelDirection, XRAxis, XRAxisBinding, XRBinding, XRButton, XRHand, XRSessionLike, XR_AXES, XR_BUTTONS, bindingLabel, bindingsEqual, controlId, gesture, key, mouse, pad, padAxis, wheel, xr, xrAxis };
@@ -1,5 +1,6 @@
1
1
  import { GAMEPAD_AXES, GAMEPAD_BUTTONS, GESTURES, XR_AXES, XR_BUTTONS, bindingLabel, bindingsEqual, controlId, gesture, key, mouse, pad, padAxis, wheel, xr, xrAxis } from "./bindings.js";
2
- import { ActionMap, DEFAULT_DEADZONE } from "./action-map.js";
2
+ import { ActionMap, DEFAULT_DEADZONE, DEFAULT_REPEAT } from "./action-map.js";
3
3
  import { GestureRecognizer } from "./gestures.js";
4
4
  import { Input } from "./input.js";
5
- export { ActionMap, DEFAULT_DEADZONE, GAMEPAD_AXES, GAMEPAD_BUTTONS, GESTURES, GestureRecognizer, Input, XR_AXES, XR_BUTTONS, bindingLabel, bindingsEqual, controlId, gesture, key, mouse, pad, padAxis, wheel, xr, xrAxis };
5
+ import { InputActionMap } from "./input-action-map.js";
6
+ export { ActionMap, DEFAULT_DEADZONE, DEFAULT_REPEAT, GAMEPAD_AXES, GAMEPAD_BUTTONS, GESTURES, GestureRecognizer, Input, InputActionMap, XR_AXES, XR_BUTTONS, bindingLabel, bindingsEqual, controlId, gesture, key, mouse, pad, padAxis, wheel, xr, xrAxis };