Quickzoom events fire twice.

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
harem
Posts: 15
Joined: Tue Jun 04, 2019 4:17 pm

Quickzoom events fire twice.

Post by harem »

I don't know if this is related to my extra zero events or not but using quickzoom in or out from either the radial menu or a hardware button causes two V3DCMD_VIEW_QZ_IN/OUT events each so it ends up zooming 100x instead of 10x. In the case of the hardware button, the 1st event occurs on the button press and the 2nd on the button release.

Can I rely on it always working like this and use both events? Or should I somehow detect the redundant one (how?) and ignore it?
jwick
Moderator
Moderator
Posts: 3331
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Quickzoom events fire twice.

Post by jwick »

There is a "pressed" element that tells you whether it is being pressed or released. Let me know if you are not seeing this.

Code: Select all

    public class SiCmdEventData : SiEventData
    {
      public int pressed;

      [MarshalAs(UnmanagedType.I4)]
      public V3DCMD functionNumber;
...
The app can either respond to the press only for a single fixed zoom factor, or use the press / release separately to, for example, start zooming on the press and stop zooming on the release.
harem
Posts: 15
Joined: Tue Jun 04, 2019 4:17 pm

Re: Quickzoom events fire twice.

Post by harem »

Works. Thanks.
Post Reply