MouseEvent::MouseEvent

MouseEvent::MouseEvent
MouseEvent();
MouseEvent(EventType eventType, unsigned button, float xpos, float ypos, float scrollVal = 0.0f, unsigned mouseIdx = 0);
MouseEvent(EventType eventType, unsigned mouseIdx);
Description

MouseEvent user event constructor - x, y must always be filled in.

Parameters
Parameters 
Description 
EventType eventType 
The type of mouse event that occurred, either MouseDown, MouseUp, MouseMove or MouseWheel. 
unsigned button 
The index of the mouse button that was pressed. This is 0 for the first (left) mouse button, 1 for the second (right) mouse button and 2 for the middle button. 
float xpos 
Mouse cursor x coordinate in relation to movie viewport at the time of mouse event. 
float ypos 
Mouse cursor y coordinate in relation to movie viewport at the time of mouse event. 
float scrollVal = 0.0f 
The scroll delta of the mouse wheel. 
unsigned mouseIdx = 0 
The index of the mouse for which the event was fired.