Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Attributes | List of all members
GuiEvent Struct Reference

`#include <guiTypes.h>`

## Public Attributes
U16 | ascii
| ascii character code 'a', 'A', 'b', '*', etc (if device==keyboard) - possibly a uchar or something More...
U8 | modifier
| SI_LSHIFT, etc. More...
U8 | keyCode
| for unprintables, 'tab', 'return', ... More...
Point2I | mousePoint
| for mouse events More...
U8 | mouseClickCount
| to determine double clicks, etc... More...
S32 | eventID
| assigns mouse or touch ID to the event More...

## Detailed Description

Represents a single GUI event.

This is passed around to all the relevant controls so they know what's going on.

## Member Data Documentation

U16 ascii

ascii character code 'a', 'A', 'b', '*', etc (if device==keyboard) - possibly a uchar or something

S32 eventID

assigns mouse or touch ID to the event

U8 keyCode

for unprintables, 'tab', 'return', ...

U8 modifier

SI_LSHIFT, etc.

U8 mouseClickCount

to determine double clicks, etc...

Point2I mousePoint

for mouse events

The documentation for this struct was generated from the following file:

- gui/guiTypes.h