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

[gemwin] doesn't output events #2055

Open
ben-wes opened this issue Jan 28, 2025 · 0 comments
Open

[gemwin] doesn't output events #2055

ben-wes opened this issue Jan 28, 2025 · 0 comments

Comments

@ben-wes
Copy link

ben-wes commented Jan 28, 2025

coming from Pd, my Gem patches don't work as expected in plugdata since [gemwin] behaves differently and there are no outputs on the outlet (at least i couldn't trigger any).

This is obviously the case because it's not the same abstraction as for Pd and implemented specifically for plugdata? (btw. - i was confused that the abstraction is delivered with plugdata in the Abstractions folder, but it's obviously not used since gemwin is probably covered by the Gem library?)

AFAICT, these are the events that it outputs with Pd:

  • mouse 0 motion -124 120 - not sure what that 0 is. maybe the window id or mouse id? never saw anything else than 0 there
  • mouse 0 button 0 1 - the last 2 values are button id and pressed state
  • keyboard 0 keyname Space 1 - last value is also pressed state here
  • keyboard 0 key 32 1 - same
  • window closed - when the window is destroyed (i didn't use this so far)
  • dimen 500 500 - this is sent on creation and size changes
  • framebuffersize 500 500 - also sent with the previous message. can differ for high resolution displays (where it might output 1000 1000 for example in this case)
  • window exposed - this is also sent after resizing the window. no idea what to use this for

in general, i can change my patches for plugdata by grabbing the mouse/keyboard interaction from gemmouse and gemkeyboard. but i currently have no idea how to get the information on the resized window, which i use a lot.

not sure if all outputs are necessary (except for compatibility reasons, of course). maybe it might even be an option to also make gemwin an abstraction in plugdata to implement some of the messages with other Gem objects...

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