Page 1 of 1

Win mouse and Direct Input mouse not giving the same results

Posted: 27 Feb 2017, 14:44
by joysprod
I was trying to detect a right click on a rectangle. I can only get this to function using a Direct Input mouse and yet both Expression nodes have the same expression and both are receiving A=1 and B=1 and yet the outputs are different.

Peter
detect right click.vzs
(10.76 KiB) Downloaded 251 times

Re: Win mouse and Direct Input mouse not giving the same res

Posted: 27 Feb 2017, 16:16
by lerou
Hi,

Looks like the changed input (WinMouse R -> Expression A) doesn't update the expression's calculation and output. As a workaround throw a mover into the scene, connect its output to C in your expression. The mover will constantly change the input and force a re-calculation.

Cheers,
rou

Re: Win mouse and Direct Input mouse not giving the same res

Posted: 06 Mar 2017, 15:10
by Götz_B
Hi,

right, there seems to be sth wrong with the validation mechanism of the Windows Mouse Node. We will check it.
Rou's workaround works - using a mover to force the validation every frame.

But probably you don't need a workaround:

In V5.2 we added Touch Groups. In the Machine Config you could set the right mouse button to a touch group, and then make the Touch Button listen to this group using the TouchGroupFilter property.

Regards,
Götz