"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.listenMovement = void 0;
const pointerdown_1 = require("./event/pointer/pointerdown");
const pointerenter_1 = require("./event/pointer/pointerenter");
const pointerleave_1 = require("./event/pointer/pointerleave");
const pointermove_1 = require("./event/pointer/pointermove");
const pointerup_1 = require("./event/pointer/pointerup");
const listenMovement = (component, callback) => {
    return component.addEventListeners([
        (0, pointerenter_1.makePointerEnterListener)(() => {
            callback();
        }),
        (0, pointermove_1.makePointerMoveListener)(() => {
            callback();
        }),
        (0, pointerleave_1.makePointerLeaveListener)(() => {
            callback();
        }),
        (0, pointerdown_1.makePointerDownListener)(() => {
            callback();
        }),
        (0, pointerup_1.makePointerUpListener)(() => {
            callback();
        }),
    ]);
};
exports.listenMovement = listenMovement;
//# sourceMappingURL=listenMovement.js.map