» update to mouse & keyboard nodes
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

update to mouse & keyboard nodes

the mouse and keyboard nodes of vvvv have seen a complete rewrite in the lastest alpha version (29.4). their interface (in- and outputs) and behaviour is still the same, but under the hood they work differently:
up till now vvvv installed a so called system wide global hook on startup which rerouted mouse and keyboard messages from other processes to the vvvv process.
for reasons beyond the scope of this blog post, this caused random freezes of vvvv or even crashes of other processes. another issue was that it only worked with one vvvv instance at a time.
with the new nodes we got rid of those global hooks. in case of the window versions of the nodes we use a much safer technique called subclassing and in case of the global versions the keyboard and mouse states are retrieved at node evaluation.

hopefully this change shouldn't affect the user at all, if it does, please report in our alpha forum.

what's probably also worth mentioning is that the mouse nodes now output the state of XButton1 and XButton2.

to plugin developers:

  • if you're writing a gui-plugin (eg. a renderer) and want the window versions of the mouse and keyboard nodes to work with your plugin, implement the new interface IUserInputWindow where you return the window handle of the control which has focus. for an example have a look at the source code of our svg renderer.
  • MouseState uses the System.Windows.Forms.MouseButtons enumeration now.
Elias, Friday, Apr 5th 2013 Digg | Tweet | Delicious 3 comments  
sebl 05/04/2013 - 17:34

does this hav any effect onm working with touchscreens? (they didn't work that well with the previous nodes... e.g. no "mouse"-buttons where working)

herbst 06/04/2013 - 17:35

If no functionality is changed this probably means that mouse/keyboard input still won't work from non-vvvv fullscreen windows (--> "global" is not really "global"?)

E.g. having vvvv in the background as a "do-something-in-the-background-central".
I created a "real" global keyboard hook some time ago (for the vvvv-Unity-connection I was showing at NODE13), because built-in "Keyboard Global" didn't receive keys from fullscreen Unity.
I just uploaded it to contributions: global-keyhook

david 21/08/2013 - 17:55

indeed we have a bad click output in vvvv mouse-nodes-click-with-ir-hid-touchdevice-not-working-properly

  • 1

anonymous user login

Shoutbox

~3mth ago

joreg: END OF SHOUTBOX! As this page has is now legacy, it will no longer feature new content. For latest news, see: http://vvvv.org

~4mth ago

joreg: vvvvTv S0204 is out: Custom Widgets with Dear ImGui: https://youtube.com/live/nrXfpn5V9h0

~4mth ago

joreg: New user registration is currently disabled as we're moving to a new login provider: https://visualprogramming.net/blog/2024/reclaiming-vvvv.org/

~4mth ago

joreg: vvvvTv S02E03 is out: Logging: https://youtube.com/live/OpUrJjTXBxM

~4mth ago

~4mth ago

joreg: Follow TobyK on his Advent of Code: https://www.twitch.tv/tobyklight

~4mth ago

joreg: vvvvTv S02E02 is out: Saving & Loading UI State: https://www.youtube.com/live/GJQGVxA1pIQ

~4mth ago

joreg: We now have a presence on LinkedIn: https://www.linkedin.com/company/vvvv-group

~4mth ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~5mth ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/