Code covered by the BSD License  

Highlights from
3D mouse support using classes and events

5.0 | 2 ratings Rate this file 12 Downloads (last 30 days) File Size: 4.98 KB File ID: #22124
image thumbnail

3D mouse support using classes and events



16 Nov 2008 (Updated )

event driven object oriented support for 3dconnexions device package

| Watch this File

File Information

This is a small class library for use with 3D mice made by 3dconnexions. I purchased one of these devices recently and decided to implement event driven support (rather than polling), which was not yet available on the file exchange. The package consists of three classes:

The class mouse3Ddrv sets up the activex server, handles the device and sends out all events.

The class mouse3Dmonitor is a graphical real time view of all of the sensor positions. This is optional eye-candy / debug tool.

The class mouse3DfigCtrl allows you to whiz around a 3D figure by controlling the camera position with your 3d device. Press button one on the device to reset the view.

A demo script gives an example of how to use the simple objects.These classes provide a framework on which you can build more interesting applications using your 3D mouse. Enjoy!


3 D Mouse Support inspired this file.

MATLAB release MATLAB 7.6 (R2008a)
Other requirements 3D mouse with windows drivers
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
25 Oct 2010 Nick Clark

Hi daf. Sorry, I've not looked at this for some time. I got a 3d mouse just to play about with. I'm not an expert on the whole product line. You might have some luck looking at the 3dconnexions website. From memory, there was quite good documentation on how to interface with the mouse using COM. You might be able to make some simple tweaks to my code to get things working. Best of luck. N

Comment only
12 Oct 2010 daf

daf (view profile)

Nick, thank you for sharing. Do you know how to comunicate with the older 3D mouse, like spacemouse? Many thanks.

06 Jan 2009 Simon

Simon (view profile)

Very nice and handy tool for using 3Dconnexion 3D-mouse in MATLAB. Works fine with MATLAB R2008a and my Space Pilot. I am using 3DxSoftware v.3.6.11 driver for the mouse.

Good job Nick

18 Jun 2009

Removed GNU license

Contact us