Mouse event documentation
Introductions
NEET provides a plethora of events for tacking the actions and movements of the users computer mouse, it's important to note that if multiple plays has the computer open, all of their mice will send events to the computer, which may cause unintended bugs (this may be fixed in future updates)
Also mouse events will specify what mouse button is in use with the 'key' parameter, a shortcut for this is 0 = left click, 1 = right click, and 2 = middle mouse, and other numbers may map to other buttons on the mouse.
Event table
mouseClicked [User]
| mouseClicked[String] | x[Int] | y[Int] | key[Int] |
| triggers when a mouse button is clicked, providing the mouses position and key pressed | |||
mouseReleased [User]
| mouseReleased[String] | x[Int] | y[Int] | key[Int] |
| triggers when a mouse button is released, providing the mouses position and key let go of | |||
mouseMoved [User]
| mouseMoved[String] | x[Int] | y[Int] |
| Triggers every time the mouse moved from one cell of the screen to another, no event is fired if the mouse moves off the GUI | ||
mouseDragged [User]
| mouseDragged[String] | x[Int] | y[Int] | key[Int] |
| is called when the mouse is being moved between cells with a button depressed, click and release events will automatically be inserted if the mouse drags off / onto the screen from off the GUI | |||
mouseScrolled [User]
| mouseScrolled[String] | x[Int] | y[Int] | h-span[Int] | v-span[Int] |
| Is called when the mouse scroll wheel is activated, providing current position and both horizontal and vertical scroll amounts | ||||