Skip to content

Commit

Permalink
fix: the bug that inputmanager cannot be obtained (#592)
Browse files Browse the repository at this point in the history
* fix: the bug that inputmanager cannot be obtained
  • Loading branch information
cptbtptpbcptdtptp authored Nov 17, 2021
1 parent c6f23a5 commit 6eb31a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export { Background } from "./Background";
export { BackgroundMode } from "./enums/BackgroundMode";
export { CameraClearFlags } from "./enums/CameraClearFlags";
export { ColorSpace } from "./enums/ColorSpace";
export * from "./input/index";
export * from "./lighting/index";
export * from "./material/index";
export * from "./texture/index";
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/input/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { PointerPhase } from "./enums/PointerPhase";
export { Pointer } from "./pointer/Pointer";
export { InputManager } from "./InputManager";
2 changes: 1 addition & 1 deletion packages/core/src/input/pointer/PointerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class PointerManager {
return -1;
}

public _addPointer(pointerId: number, x: number, y: number, phase: PointerPhase): void {
private _addPointer(pointerId: number, x: number, y: number, phase: PointerPhase): void {
const { _pointers: pointers } = this;
const lastCount = pointers.length;
if (lastCount === 0 || this._multiPointerEnabled) {
Expand Down

0 comments on commit 6eb31a8

Please sign in to comment.