Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse support (redux) #21

Closed
redchair123 opened this issue Oct 8, 2012 · 0 comments
Closed

Mouse support (redux) #21

redchair123 opened this issue Oct 8, 2012 · 0 comments

Comments

@redchair123
Copy link

So I hacked something together, but I figured you could do it better :)

mousemask(ALL_MOUSE_EVENTS, NULL);

I put that in the panel init but that's not the right place for the call. This is sufficient to just respond to a mouse event (so that you could receive the nc.keys.MOUSE event)

To actually get the mouse, you need to call getmouse and expose the struct via the node interface.

What I ended up doing was creating a separate callback inputMouse. I don't think that's the right approach but at least it works :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant