Torque2D Reference
Loading...
Searching...
No Matches
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
 
U8 modifier
 SI_LSHIFT, etc.
 
U8 keyCode
 for unprintables, 'tab', 'return', ...
 
Point2I mousePoint
 for mouse events
 
U8 mouseClickCount
 to determine double clicks, etc...
 
S32 eventID
 assigns mouse or touch ID to the event
 

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

◆ ascii

U16 ascii

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

◆ eventID

S32 eventID

assigns mouse or touch ID to the event

◆ keyCode

U8 keyCode

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

◆ modifier

U8 modifier

SI_LSHIFT, etc.

◆ mouseClickCount

U8 mouseClickCount

to determine double clicks, etc...

◆ mousePoint

Point2I mousePoint

for mouse events


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