ui/ Mouse.jsThis library creates an object that can be used to track the current mouse position. This library creates and object called SysMouse which is an instance of SystemMouse described here (meaning you’ll probably never need to make an instance of SystemMouse). To enable tracking, register the neuro_trackMouse method with the event manager or with the document mouse move event. For example when using the eventmanager.js you can do the following: //register the mouse tracker that will alert the X and Y position on every mouse move. Copyright2005 Rob Rohan (robr@gmai l.com) ohan Summary
SystemMouseConstructor for SystemMouse this holds the current mouse position on the screen in X and Y Summary
SystemMouse. setMouseCoordsgets the current mouse position and puts it into the SysMouse object this is not really an API call; however it needs to get envoked on window mouse move events to be of any help. For example using the neuro event model: neuro_addMoveListener(SysMouse.setMouseCoords); Parameters
|
the library version
var SYSMOUSE_VERSION
Wrapper function to fill in the mouse object with the current coordinates.
function neuro_trackMouse( event )
An instance of SystemMouse for use in your everyday code
SysMouse