Sign in to follow this  
Growler

registerPointerEvent not emitting in 5.1

Recommended Posts

I have three pointer events I'd like to register within game.playerEntity:

me.input.registerPointerEvent('pointerdown', me.game.viewport, this.pointerdown.bind(this));
me.input.registerPointerEvent('pointerup', me.game.viewport, this.pointerup.bind(this));
me.input.registerPointerEvent('pointermove', me.game.viewport, this.pointermove.bind(this));

I do this within the init:

game.PlayerEntity = me.Entity.extend({
    init: function(x, y, settings) {
        // call the constructor
        this._super(me.Entity, 'init', [x, y, settings]);

        ...

       // me.input registrations here:

I thought somehow the binding wasn't working, so I passed in an anon function and it's still not firing:

me.input.registerPointerEvent("pointermove", me.game.viewport, function(event) {
	console.log('Test');
});

How do I get pointer events to work in Melon 5.1?

Share this post


Link to post
Share on other sites

that's weird to be honest.... that we have some bugs yes totally possible, but for it not to work at all, it's really surprising.... would you mind sharing your code, or at least a minimal version of it that can reproduce the issue ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.