This C++ code demostrates how to determine current position of the mouse or the current state of the mouse buttons and keys on the keyboard.
DirectX is a trademark
of Microsoft Corp.; TouchSense is a trademark of Immersion Corp.;
Phantom is a trademark of Sensable Technologies Inc.;
Delta is a trademark of Force Dimension™.