Skip to content

Commit

Permalink
export inputevent and system event (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonpombo8 authored Mar 1, 2024
1 parent 2e58941 commit 8dbeee0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/@dcl/ecs/src/engine/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export type IInputSystem = {
const InputStateUpdateSystemPriority = 1 << 20

/**
* @internal
* @public
* ____DO NOT USE ____ use inputSystem instead
*/
export function createInputSystem(engine: IEngine): IInputSystem {
const PointerEventsResult = components.PointerEventsResult(engine)
Expand Down
3 changes: 2 additions & 1 deletion packages/@dcl/ecs/src/systems/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ export interface PointerEventsSystem {
}

/**
* @internal
* @public
* ___DO NOT USE___ use pointerEventsSystem instead
*/
export function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSystem): PointerEventsSystem {
const PointerEvents = components.PointerEvents(engine)
Expand Down
6 changes: 6 additions & 0 deletions packages/@dcl/playground-assets/etc/playground-assets.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,12 @@ export function createEthereumProvider(): {
sendAsync(message: RPCSendableMessage, callback: (error: Error | null, result?: any) => void): void;
};

// @public
export function createInputSystem(engine: IEngine): IInputSystem;

// @public
export function createPointerEventsSystem(engine: IEngine, inputSystem: IInputSystem): PointerEventsSystem;

// Warning: (tsdoc-code-fence-closing-syntax) Unexpected characters after closing delimiter for code fence
// Warning: (tsdoc-code-span-missing-delimiter) The code span is missing its closing backtick
// Warning: (tsdoc-undefined-tag) The TSDoc tag "@params" is not defined in this configuration
Expand Down

0 comments on commit 8dbeee0

Please sign in to comment.