Mouse click events in the C#.NET framework

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

Moderator: Moderators

Post Reply
Meng,Zhou
Posts: 1
Joined: Sun Oct 27, 2024 3:51 am

Mouse click events in the C#.NET framework

Post by Meng,Zhou »

Hello everyone!

I'd like to ask if the C#.NET framework supports the triggering of mouse click events during application development. I've reviewed the GettingStarted example in the latest SDK and found only a few scenarios. I'm hoping to receive guidance and suggestions from all of you.

public event EventHandler<MotionEventArgs> MotionChanged;
public event EventHandler<TransactionEventArgs> TransactionChanged;
public event EventHandler SettingsChanged;
public event EventHandler<CommandEventArgs> ExecuteCommand;
public event EventHandler<KeyEventArgs> KeyDown;
public event EventHandler<KeyEventArgs> KeyUp;
ngomes
Moderator
Moderator
Posts: 3410
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Re: Mouse click events in the C#.NET framework

Post by ngomes »

Hi Zhou,

Mouse clicks are handled by the system, not by the application through the 3DxWare driver API.

The "KeyDown" and "KeyUp" are legacy events and its use is not recommended. These events are not included in the navlib.pdf document.

Our suggestion is to export a list of application commands as demonstrated in the sample code. That way users of your program can assign any of those commands to a device button (or a Radial Menu).
Nuno Gomes
Post Reply