Data type FlowEvent
access this type via: ui.FlowRender (uses)
FlowEvent describes an input event.
Constants
int T_QUIT An event type meaning that the window has been closed and the system should exit.
int T_WINDOW An event type meaning that one of the W_ constants is applied to the subType field.
int T_MOUSE An event type meaning that one of the M_ constants is applied to the subType field.
int T_KEYBOARD An event type meaning that one of the K_ constants is applied to the subType field.
int W_RESIZE A possible value of subType, indicating a window resize event. dataInt1 is set to the new width, and dataInt2 to the new height.
int W_MOVE A possible value of subType, indicating a window move event. dataInt1 is set to the new x-position, and dataInt2 to the new y-position.
int M_DOWN A possible value of subType, indicating a mouse button down event. dataInt1 is set to the button ID, dataInt2 to the x-position of the cursor, and dataInt3 to the y-position of the cursor.
int M_UP A possible value of subType, indicating a mouse button up event. dataInt1 is set to the button ID, dataInt2 to the x-position of the cursor, and dataInt3 to the y-position of the cursor.
int M_MOVE A possible value of subType, indicating a mouse cursor move event. dataInt1 is set to the x-position of the cursor, and dataInt2 to the y-position of the cursor.
int M_WHEEL A possible value of subType, indicating a mouse wheel move event. dataInt1 is set to the volume of negative movement on the x-axis, dataInt2 is set to the volume of positive movement on the x-axis, dataInt3 is set to the volume of negative movement on the y-axis, and dataInt4 is set to the volume of positive movement on the y-axis.
int K_DOWN A possible value of subType, indicating a key down event. dataInt1 is set to the key code of the associated key.
int K_UP A possible value of subType, indicating a key up event. dataInt1 is set to the key code of the associated key.
Fields
int4 type The event type, from one of the T_ constants.
int4 subType subType is set to a value drawn from the constants available in the specific event type.
int4 dataInt1 This field's value is set depending on the type/subType combination of the event.
int4 dataInt2 This field's value is set depending on the type/subType combination of the event.
int4 dataInt3 This field's value is set depending on the type/subType combination of the event.
int4 dataInt4 This field's value is set depending on the type/subType combination of the event.