plugdata icon indicating copy to clipboard operation
plugdata copied to clipboard

[gemwin] doesn't output events

Open ben-wes opened this issue 11 months ago • 0 comments

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...

ben-wes avatar Jan 28 '25 10:01 ben-wes