// DeltaX is the change in X since the last MouseMove event. This value is expressed in device independent pixels.
DeltaXfloat32
// DeltaY is the change in Y since the last MouseMove event. This value is expressed in device independent pixels.
DeltaYfloat32
}
// MouseWheel is a mouse wheel event.
typeMouseWheelstruct{
// X is the X position of the mouse wheel. This value is expressed in arbitrary units. It increases when the mouse wheel is scrolled downwards, and decreases when the mouse is scrolled upwards.
Xfloat32
// Y is the Y position of the mouse wheel. This value is expressed in arbitrary units. It increases when the mouse wheel is scrolled to the right, and decreases when the mouse is scrolled to the left.
Yfloat32
// DeltaX is the change in X since the last MouseWheel event. This value is expressed in arbitrary units. It is positive when the mouse wheel is scrolled downwards, and negative when the mouse is scrolled upwards.
DeltaXfloat32
// DeltaY is the change in Y since the last MouseWheel event. This value is expressed in arbitrary units. It is positive when the mouse wheel is scrolled to the right, and negative when the mouse is scrolled to the left.
DeltaYfloat32
}
// MouseButtonDown is a mouse button press event.
typeMouseButtonDownstruct{
// X is the X position of the mouse pointer. This value is expressed in device independent pixels.
Xfloat32
// Y is the Y position of the mouse pointer. This value is expressed in device independent pixels.
Yfloat32
// Button is the button on the mouse that was pressed. TODO: this should change later from an int to an enumeration type.
Buttonint
// Pressure is the pressure applied on the mouse button. It varies between 0.0 for not pressed, and 1.0 for completely pressed.
Pressurefloat32
}
// MouseButtonUp is a mouse button release event.
typeMouseButtonUpstruct{
// X is the X position of the mouse pointer. This value is expressed in device independent pixels.
Xfloat32
// Y is the Y position of the mouse pointer. This value is expressed in device independent pixels.
Yfloat32
// Button is the button on the mouse that was pressed. TODO: this should change later from an int to an enumeration type.
Buttonint
// Pressure is the pressure applied on the mouse button. It varies between 0.0 for not pressed, and 1.0 for completely pressed.
Pressurefloat32
}
// MouseEnter occurs when the mouse enters the view window.
typeMouseEnterstruct{
// X is the X position of the mouse pointer. This value is expressed in device independent pixels.
Xfloat32
// Y is the Y position of the mouse pointer. This value is expressed in device independent pixels.
Yfloat32
}
// MouseLeave occurs when the mouse leaves the view window.
typeMouseLeavestruct{
// X is the X position of the mouse pointer. This value is expressed in device independent pixels.
Xfloat32
// Y is the Y position of the mouse pointer. This value is expressed in device independent pixels.
Yfloat32
}
// TouchBegin occurs when a touch begins.
typeTouchBeginstruct{
// ID identifies the touch that caused the touch event.
IDint
// X is the X position of the touch. This value is expressed in device independent pixels.
Xfloat32
// Y is the Y position of the touch. This value is expressed in device independent pixels.
Yfloat32
// DeltaX is the change in X since last touch event. This value is expressed in device independent pixels.
DeltaXfloat32
// Deltay is the change in Y since last touch event. This value is expressed in device independent pixels.
Deltayfloat32
// Pressure of applied touch. It varies between 0.0 for not pressed, and 1.0 for completely pressed.
Pressurefloat32
// Primary represents whether the touch event is the primary touch or not. If it is true, then it is a primary touch. If it is false then it is not.
Primarybool
}
// TouchMove occurs when a touch moved, or in other words, is dragged.
typeTouchMovestruct{
// ID identifies the touch that caused the touch event.
IDint
// X is the X position of the touch. This value is expressed in device independent pixels.
Xfloat32
// Y is the Y position of the touch. This value is expressed in device independent pixels.
Yfloat32
// DeltaX is the change in X since last touch event. This value is expressed in device independent pixels.
DeltaXfloat32
// Deltay is the change in Y since last touch event. This value is expressed in device independent pixels.
Deltayfloat32
// Pressure of applied touch. It varies between 0.0 for not pressed, and 1.0 for completely pressed.
Pressurefloat32
// Primary represents whether the touch event is the primary touch or not. If it is true, then it is a primary touch. If it is false then it is not.
Primarybool
}
// TouchEnd occurs when a touch ends.
typeTouchEndstruct{
// ID identifies the touch that caused the touch event.
IDint
// X is the X position of the touch. This value is expressed in device independent pixels.
Xfloat32
// Y is the Y position of the touch. This value is expressed in device independent pixels.
Yfloat32
// DeltaX is the change in X since last touch event. This value is expressed in device independent pixels.
DeltaXfloat32
// Deltay is the change in Y since last touch event. This value is expressed in device independent pixels.
Deltayfloat32
// Pressure of applied touch. It varies between 0.0 for not pressed, and 1.0 for completely pressed.
Pressurefloat32
// Primary represents whether the touch event is the primary touch or not. If it is true, then it is a primary touch. If it is false then it is not.
// TouchCancel occurs when a touch is canceled. This can happen in various situations, depending on the underlying platform, for example when the application loses focus.