HH6 SDK Mouse Up Multi event bug
Posted: 02 Jun 2025, 22:17
On HH6 I am seeing an error with the mouse events.
When a touchpoint is removed an extra mouse down is being sent.
The following is trace from touching and lifting a single finger.
[34] simonj DOWN multi 0: x=0.344595, y=0.734637, pressed=1.000000, mask=91
[36] simonj ++++ MOUSE UP on touchpoint 0
[38] simonj UP multi 0: x=1.000000, y=1.000000, pressed=0.000000, mask=90
[40] simonj DOWN multi 0: x=0.344595, y=0.740223, pressed=1.000000, mask=91
The mask is my own indication of mouse down or up for a number of touchpoints - here only 1 touchpoint exists.
It might be usual have a mouse UP multi with x and y = 1 - I'm not sure but in practice the position of an UP event does not matter.
However, an extra DOWN event is being produced.
This does not happen with the mouse - only with touch.
I have a touch keyboard in my SDK user module and this is causing another keypress !
This does not happen with the same module in HH5.
For comparison, this is what I see in HH5:
[426] simonj DOWN multi 0: x=0.680180, y=0.396648, pressed=1.000000, mask=910
[428] simonj ++++ MOUSE UP on touchpoint 0
[430] simonj UP multi 0: x=1.000000, y=0.726257, pressed=0.000000, mask=900
The interesting thing here is the x and y values are nonsense.
It seems to me that if the HH6 faulty DOWN values were used in the UP and the DOWN was removed, everything would be perfect.
Before I raise a ticket - has anyone else seen this ?
Simon.
When a touchpoint is removed an extra mouse down is being sent.
The following is trace from touching and lifting a single finger.
[34] simonj DOWN multi 0: x=0.344595, y=0.734637, pressed=1.000000, mask=91
[36] simonj ++++ MOUSE UP on touchpoint 0
[38] simonj UP multi 0: x=1.000000, y=1.000000, pressed=0.000000, mask=90
[40] simonj DOWN multi 0: x=0.344595, y=0.740223, pressed=1.000000, mask=91
The mask is my own indication of mouse down or up for a number of touchpoints - here only 1 touchpoint exists.
It might be usual have a mouse UP multi with x and y = 1 - I'm not sure but in practice the position of an UP event does not matter.
However, an extra DOWN event is being produced.
This does not happen with the mouse - only with touch.
I have a touch keyboard in my SDK user module and this is causing another keypress !
This does not happen with the same module in HH5.
For comparison, this is what I see in HH5:
[426] simonj DOWN multi 0: x=0.680180, y=0.396648, pressed=1.000000, mask=910
[428] simonj ++++ MOUSE UP on touchpoint 0
[430] simonj UP multi 0: x=1.000000, y=0.726257, pressed=0.000000, mask=900
The interesting thing here is the x and y values are nonsense.
It seems to me that if the HH6 faulty DOWN values were used in the UP and the DOWN was removed, everything would be perfect.
Before I raise a ticket - has anyone else seen this ?
Simon.