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?
Quickzoom events fire twice.
Moderator: Moderators
Re: Quickzoom events fire twice.
There is a "pressed" element that tells you whether it is being pressed or released. Let me know if you are not seeing this.
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.
Code: Select all
public class SiCmdEventData : SiEventData
{
public int pressed;
[MarshalAs(UnmanagedType.I4)]
public V3DCMD functionNumber;
...
Re: Quickzoom events fire twice.
Works. Thanks.