Comment:"Pressure of applied touch. It varies between 0.0 for not pressed, and 1.0 for completely pressed.",
Type:"float32",
},
{
Comment:"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.",
Type:"bool",
},
}
events=[]Event{
{
Comment:"KeyboardKeyCharacter is an event that occurs when a character is actually typed on the keyboard. This may be provided by an input method.",
Members:[]Member{
{
Comment:"Key is the key code of the key typed.",
Type:"Key",
},
{
Comment:"Modifier is the logical-or value of the modifiers pressed together with the key.",
Type:"Modifier",
},
{
Comment:"Character is the character that was typed.",
Type:"rune",
},
},
},
{
Comment:"KeyboardKeyDown is an event that occurs when a key is pressed on the keyboard.",
Members:membersKeyboardKey,
},
{
Comment:"KeyboardKeyUp is an event that occurs when a key is released on the keyboard.",
Members:membersKeyboardKey,
},
{
Comment:"GamepadAxis is for event where an axis on a gamepad changes.",
Members:[]Member{
{
Comment:"ID represents which gamepad caused the event.",
Type:"int",
},
{
Comment:"Axis is the axis of the game pad that changed position.",
Type:"int",
},
{
Comment:"Position is the position of the axis after the change. It varies between -1.0 and 1.0.",
Type:"float32",
},
},
},
{
Comment:"GamepadButtonDown is a gamepad button press event.",
Members:membersGamepadButton,
},
{
Comment:"GamepadButtonUp is a gamepad button release event.",
Members:membersGamepadButton,
},
{
Comment:"GamepadAttach happens when a new gamepad is attached.",
Members:[]Member{
{
Comment:"ID represents which gamepad caused the event.",
Type:"int",
},
{
Comment:"Axes represents the amount of axes the gamepad has.",
Type:"int",
},
{
Comment:"Buttons represents the amount of buttons the gamepad has.",
Type:"int",
},
},
},
{
Comment:"GamepadDetach happens when a gamepad is detached.",
Members:[]Member{
{
Comment:"ID represents which gamepad caused the event.",
Type:"int",
},
},
},
{
Comment:"MouseMove is a mouse movement event.",
Members:[]Member{
{
Comment:"X is the X position of the mouse pointer. This value is expressed in device independent pixels.",
Comment:"DeltaX is the change in X since the last MouseMove event. This value is expressed in device independent pixels.",
Type:"float32",
},
{
Comment:"DeltaY is the change in Y since the last MouseMove event. This value is expressed in device independent pixels.",
Type:"float32",
},
},
},
{
Comment:"MouseWheel is a mouse wheel event.",
Members:[]Member{
{
Comment:"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.",
Type:"float32",
},
{
Comment:"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.",
Type:"float32",
},
{
Comment:"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.",
Type:"float32",
},
{
Comment:"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.",
Type:"float32",
},
},
},
{
Comment:"MouseButtonDown is a mouse button press event.",
Members:membersMouseButton,
},
{
Comment:"MouseButtonUp is a mouse button release event.",
Members:membersMouseButton,
},
{
Comment:"MouseEnter occurs when the mouse enters the view window.",
Members:membersMouseEnter,
},
{
Comment:"MouseLeave occurs when the mouse leaves the view window.",
Members:membersMouseEnter,
},
{
Comment:"TouchBegin occurs when a touch begins.",
Members:membersTouch,
},
{
Comment:"TouchMove occurs when a touch moved, or in other words, is dragged.",
Comment:"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.",