GL Studio SCECpp Runtime Library
Public Types | Public Attributes | List of all members
GlsEvent Struct Reference

#include <gls_event.h>

Public Types

enum  EventType {
  EVENT_TYPE_MOUSE_BUTTON_DOWN, EVENT_TYPE_MOUSE_BUTTON_UP, EVENT_TYPE_MOUSE_MOVE, EVENT_TYPE_MOUSE_DRAG,
  EVENT_TYPE_MOUSE_ENTER, EVENT_TYPE_MOUSE_LEAVE, EVENT_TYPE_KEYBOARD_DOWN, EVENT_TYPE_KEYBOARD_UP,
  EVENT_TYPE_USER
}
 
enum  MouseButton {
  MOUSE_BUTTON_NONE = 0u, MOUSE_BUTTON_LEFT = ( 1u << 0u ), MOUSE_BUTTON_MIDDLE = ( 1u << 1u ), MOUSE_BUTTON_RIGHT = ( 1u << 2u ),
  MOUSE_BUTTON_USER_1 = ( 1u << 3u ), MOUSE_BUTTON_USER_2 = ( 1u << 4u ), MOUSE_BUTTON_USER_3 = ( 1u << 5u ), MOUSE_BUTTON_USER_4 = ( 1u << 6u ),
  MOUSE_BUTTON_USER_5 = ( 1u << 7u )
}
 
enum  KeyboardModifier {
  KEYBOARD_MODIFIER_NONE = 0u, KEYBOARD_MODIFIER_SHIFT = ( 1u << 0u ), KEYBOARD_MODIFIER_CAPS_LOCK = ( 1u << 1u ), KEYBOARD_MODIFIER_CTRL = ( 1u << 2u ),
  KEYBOARD_MODIFIER_ALT = ( 1u << 3u ), KEYBOARD_MODIFIER_NUM_LOCK = ( 1u << 4u ), KEYBOARD_MODIFIER_SCROLL_LOCK = ( 1u << 5u ), KEYBOARD_MODIFIER_META = ( 1u << 6u ),
  KEYBOARD_MODIFIER_USER_MOD_1 = ( 1u << 7u ), KEYBOARD_MODIFIER_USER_MOD_2 = ( 1u << 8u ), KEYBOARD_MODIFIER_USER_MOD_3 = ( 1u << 9u ), KEYBOARD_MODIFIER_USER_MOD_4 = ( 1u << 10u ),
  KEYBOARD_MODIFIER_USER_MOD_5 = ( 1u << 11u ), KEYBOARD_MODIFIER_USER_MOD_6 = ( 1u << 12u ), KEYBOARD_MODIFIER_USER_MOD_7 = ( 1u << 13u )
}
 
enum  KeyboardKey {
  KEYBOARD_KEY_NULL = 0x00, KEYBOARD_KEY_SHIFT = 0x01, KEYBOARD_KEY_CTRL = 0x02, KEYBOARD_KEY_ALT = 0x03,
  KEYBOARD_KEY_META = 0x04, KEYBOARD_CAPS_LOCK = 0x05, KEYBOARD_KEY_NUM_LOCK = 0x06, KEYBOARD_KEY_SCROLL_LOCK = 0x07,
  KEYBOARD_KEY_BACKSPACE = 0x08, KEYBOARD_KEY_TAB = 0x09, KEYBOARD_KEY_ENTER = 0x0A, KEYBOARD_KEY_PAUSE = 0x0B,
  KEYBOARD_KEY_INSERT = 0x0C, KEYBOARD_KEY_HOME = 0x0D, KEYBOARD_KEY_END = 0x0E, KEYBOARD_KEY_PAGE_UP = 0x0F,
  KEYBOARD_KEY_PAGE_DOWN = 0x10, KEYBOARD_KEY_ARROW_LEFT = 0x11, KEYBOARD_KEY_ARROW_UP = 0x12, KEYBOARD_KEY_ARROW_RIGHT = 0x13,
  KEYBOARD_KEY_ARROW_DOWN = 0x14, KEYBOARD_KEY_SYS_RQ = 0x15, KEYBOARD_KEY_PRINT_SCREEN = 0x16, KEYBOARD_KEY_BREAK = 0x17,
  KEYBOARD_KEY_ESCAPE = 0x18, KEYBOARD_KEY_USER_MOD_1 = 0x19, KEYBOARD_KEY_USER_MOD_2 = 0x1A, KEYBOARD_KEY_USER_MOD_3 = 0x1B,
  KEYBOARD_KEY_USER_MOD_4 = 0x1C, KEYBOARD_KEY_USER_MOD_5 = 0x1D, KEYBOARD_KEY_USER_MOD_6 = 0x1E, KEYBOARD_KEY_USER_MOD_7 = 0x1F,
  KEYBOARD_KEY_SPACE = 0x20, KEYBOARD_KEY_EXCLAMATION_MARK = 0x21, KEYBOARD_KEY_QUOTATION_MARK = 0x22, KEYBOARD_KEY_NUMBER_SIGN = 0x23,
  KEYBOARD_KEY_DOLLAR_SIGN = 0x24, KEYBOARD_KEY_PERCENT_SIGN = 0x25, KEYBOARD_KEY_AMPERSAND = 0x26, KEYBOARD_KEY_APOSTROPHE = 0x27,
  KEYBOARD_KEY_LEFT_PARENTHESES = 0x28, KEYBOARD_KEY_RIGHT_PARENTHESES = 0x29, KEYBOARD_KEY_ASTERISK = 0x2A, KEYBOARD_KEY_PLUS = 0x2B,
  KEYBOARD_KEY_COMMA = 0x2C, KEYBOARD_KEY_HYPHEN = 0x2D, KEYBOARD_KEY_PERIOD = 0x2E, KEYBOARD_KEY_FORWARD_SLASH = 0x2F,
  KEYBOARD_KEY_ZERO = 0x30, KEYBOARD_KEY_ONE = 0x31, KEYBOARD_KEY_TWO = 0x32, KEYBOARD_KEY_THREE = 0x33,
  KEYBOARD_KEY_FOUR = 0x34, KEYBOARD_KEY_FIVE = 0x35, KEYBOARD_KEY_SIX = 0x36, KEYBOARD_KEY_SEVEN = 0x37,
  KEYBOARD_KEY_EIGHT = 0x38, KEYBOARD_KEY_NINE = 0x39, KEYBOARD_KEY_COLON = 0x3A, KEYBOARD_KEY_SEMICOLON = 0x3B,
  KEYBOARD_KEY_LESS_THAN_SIGN = 0x3C, KEYBOARD_KEY_EQUALS_SIGN = 0x3D, KEYBOARD_KEY_GREATER_THAN_SIGN = 0x3E, KEYBOARD_KEY_QUESTION_MARK = 0x3F,
  KEYBOARD_KEY_AT_SIGN = 0x40, KEYBOARD_KEY_UPPERCASE_A = 0x41, KEYBOARD_KEY_UPPERCASE_B = 0x42, KEYBOARD_KEY_UPPERCASE_C = 0x43,
  KEYBOARD_KEY_UPPERCASE_D = 0x44, KEYBOARD_KEY_UPPERCASE_E = 0x45, KEYBOARD_KEY_UPPERCASE_F = 0x46, KEYBOARD_KEY_UPPERCASE_G = 0x47,
  KEYBOARD_KEY_UPPERCASE_H = 0x48, KEYBOARD_KEY_UPPERCASE_I = 0x49, KEYBOARD_KEY_UPPERCASE_J = 0x4A, KEYBOARD_KEY_UPPERCASE_K = 0x4B,
  KEYBOARD_KEY_UPPERCASE_L = 0x4C, KEYBOARD_KEY_UPPERCASE_M = 0x4D, KEYBOARD_KEY_UPPERCASE_N = 0x4E, KEYBOARD_KEY_UPPERCASE_O = 0x4F,
  KEYBOARD_KEY_UPPERCASE_P = 0x50, KEYBOARD_KEY_UPPERCASE_Q = 0x51, KEYBOARD_KEY_UPPERCASE_R = 0x52, KEYBOARD_KEY_UPPERCASE_S = 0x53,
  KEYBOARD_KEY_UPPERCASE_T = 0x54, KEYBOARD_KEY_UPPERCASE_U = 0x55, KEYBOARD_KEY_UPPERCASE_V = 0x56, KEYBOARD_KEY_UPPERCASE_W = 0x57,
  KEYBOARD_KEY_UPPERCASE_X = 0x58, KEYBOARD_KEY_UPPERCASE_Y = 0x59, KEYBOARD_KEY_UPPERCASE_Z = 0x5A, KEYBOARD_KEY_LEFT_SQUARE_BRACKET = 0x5B,
  KEYBOARD_KEY_BACKSLASH = 0x5C, KEYBOARD_KEY_RIGHT_SQUARE_BRACKET = 0x5D, KEYBOARD_KEY_CARET = 0x5E, KEYBOARD_KEY_UNDERSCORE = 0x5F,
  KEYBOARD_KEY_OPENING_SINGLE_QUOTE = 0x60, KEYBOARD_KEY_LOWERCASE_A = 0x61, KEYBOARD_KEY_LOWERCASE_B = 0x62, KEYBOARD_KEY_LOWERCASE_C = 0x63,
  KEYBOARD_KEY_LOWERCASE_D = 0x64, KEYBOARD_KEY_LOWERCASE_E = 0x65, KEYBOARD_KEY_LOWERCASE_F = 0x66, KEYBOARD_KEY_LOWERCASE_G = 0x67,
  KEYBOARD_KEY_LOWERCASE_H = 0x68, KEYBOARD_KEY_LOWERCASE_I = 0x69, KEYBOARD_KEY_LOWERCASE_J = 0x6A, KEYBOARD_KEY_LOWERCASE_K = 0x6B,
  KEYBOARD_KEY_LOWERCASE_L = 0x6C, KEYBOARD_KEY_LOWERCASE_M = 0x6D, KEYBOARD_KEY_LOWERCASE_N = 0x6E, KEYBOARD_KEY_LOWERCASE_O = 0x6F,
  KEYBOARD_KEY_LOWERCASE_P = 0x70, KEYBOARD_KEY_LOWERCASE_Q = 0x71, KEYBOARD_KEY_LOWERCASE_R = 0x72, KEYBOARD_KEY_LOWERCASE_S = 0x73,
  KEYBOARD_KEY_LOWERCASE_T = 0x74, KEYBOARD_KEY_LOWERCASE_U = 0x75, KEYBOARD_KEY_LOWERCASE_V = 0x76, KEYBOARD_KEY_LOWERCASE_W = 0x77,
  KEYBOARD_KEY_LOWERCASE_X = 0x78, KEYBOARD_KEY_LOWERCASE_Y = 0x79, KEYBOARD_KEY_LOWERCASE_Z = 0x7A, KEYBOARD_KEY_LEFT_CURLY_BRACE = 0x7B,
  KEYBOARD_KEY_VERTICAL_LINE = 0x7C, KEYBOARD_KEY_RIGHT_CURLY_BRACE = 0x7D, KEYBOARD_KEY_TILDE = 0x7E, KEYBOARD_KEY_DELETE = 0x7F,
  KEYBOARD_KEY_F1 = 0x80, KEYBOARD_KEY_F2 = 0x81, KEYBOARD_KEY_F3 = 0x82, KEYBOARD_KEY_F4 = 0x83,
  KEYBOARD_KEY_F5 = 0x84, KEYBOARD_KEY_F6 = 0x85, KEYBOARD_KEY_F7 = 0x86, KEYBOARD_KEY_F8 = 0x87,
  KEYBOARD_KEY_F9 = 0x88, KEYBOARD_KEY_F10 = 0x89, KEYBOARD_KEY_F11 = 0x8A, KEYBOARD_KEY_F12 = 0x8B,
  KEYBOARD_KEY_USER_DEFINED_1 = 0x8C, KEYBOARD_KEY_USER_DEFINED_2 = 0x8D, KEYBOARD_KEY_USER_DEFINED_3 = 0x8E, KEYBOARD_KEY_USER_DEFINED_4 = 0x8F,
  KEYBOARD_KEY_USER_DEFINED_5 = 0x90, KEYBOARD_KEY_USER_DEFINED_6 = 0x91, KEYBOARD_KEY_USER_DEFINED_7 = 0x92, KEYBOARD_KEY_USER_DEFINED_8 = 0x93,
  KEYBOARD_KEY_USER_DEFINED_9 = 0x94, KEYBOARD_KEY_USER_DEFINED_10 = 0x95, KEYBOARD_KEY_USER_DEFINED_11 = 0x96, KEYBOARD_KEY_USER_DEFINED_12 = 0x97,
  KEYBOARD_KEY_USER_DEFINED_13 = 0x98, KEYBOARD_KEY_USER_DEFINED_14 = 0x99, KEYBOARD_KEY_USER_DEFINED_15 = 0x9A, KEYBOARD_KEY_USER_DEFINED_16 = 0x9B,
  KEYBOARD_KEY_USER_DEFINED_17 = 0x9C, KEYBOARD_KEY_USER_DEFINED_18 = 0x9D, KEYBOARD_KEY_USER_DEFINED_19 = 0x9E, KEYBOARD_KEY_USER_DEFINED_20 = 0x9F,
  KEYBOARD_KEY_USER_DEFINED_21 = 0xA0, KEYBOARD_KEY_USER_DEFINED_22 = 0xA1, KEYBOARD_KEY_USER_DEFINED_23 = 0xA2, KEYBOARD_KEY_USER_DEFINED_24 = 0xA3,
  KEYBOARD_KEY_USER_DEFINED_25 = 0xA4, KEYBOARD_KEY_USER_DEFINED_26 = 0xA5, KEYBOARD_KEY_USER_DEFINED_27 = 0xA6, KEYBOARD_KEY_USER_DEFINED_28 = 0xA7,
  KEYBOARD_KEY_USER_DEFINED_29 = 0xA8, KEYBOARD_KEY_USER_DEFINED_30 = 0xA9, KEYBOARD_KEY_USER_DEFINED_31 = 0xAA, KEYBOARD_KEY_USER_DEFINED_32 = 0xAB
}
 

Public Attributes

EventType eventType
 
GlsVector2D windowCoord
 
GlsUInt32 mouseButton
 
GlsUInt32 keyboardModifier
 
KeyboardKey keyboardKey
 
GlsUInt32 userData
 
GlsDisplayObjectinitiator
 

Detailed Description

encapsulates an event

Member Enumeration Documentation

enumeration of possible event types

Enumerator
EVENT_TYPE_MOUSE_BUTTON_DOWN 

mouse button down event

EVENT_TYPE_MOUSE_BUTTON_UP 

mouse button up event

EVENT_TYPE_MOUSE_MOVE 

mouse move event

EVENT_TYPE_MOUSE_DRAG 

mouse drag event

EVENT_TYPE_MOUSE_ENTER 

mouse enter event

EVENT_TYPE_MOUSE_LEAVE 

mouse leave event

EVENT_TYPE_KEYBOARD_DOWN 

keyboard down event

EVENT_TYPE_KEYBOARD_UP 

keyboard up event

EVENT_TYPE_USER 

User defined event

Keyboard key enumeration

Enumerator
KEYBOARD_KEY_NULL 

no key

KEYBOARD_KEY_SHIFT 

shift key

KEYBOARD_KEY_CTRL 

ctrl key

KEYBOARD_KEY_ALT 

alt key

KEYBOARD_KEY_META 

meta key

KEYBOARD_CAPS_LOCK 

caps lock key

KEYBOARD_KEY_NUM_LOCK 

num lock key

KEYBOARD_KEY_SCROLL_LOCK 

scroll lock key

KEYBOARD_KEY_BACKSPACE 

backspace key

KEYBOARD_KEY_TAB 

tab key

KEYBOARD_KEY_ENTER 

enter key

KEYBOARD_KEY_PAUSE 

pause key

KEYBOARD_KEY_INSERT 

insert key

KEYBOARD_KEY_HOME 

home key

KEYBOARD_KEY_END 

end key

KEYBOARD_KEY_PAGE_UP 

page up key

KEYBOARD_KEY_PAGE_DOWN 

page down key

KEYBOARD_KEY_ARROW_LEFT 

arrow left key

KEYBOARD_KEY_ARROW_UP 

arrow up key

KEYBOARD_KEY_ARROW_RIGHT 

arrow right key

KEYBOARD_KEY_ARROW_DOWN 

arrow down key

KEYBOARD_KEY_SYS_RQ 

SysRq key

KEYBOARD_KEY_PRINT_SCREEN 

Print Screen key

KEYBOARD_KEY_BREAK 

Break key

KEYBOARD_KEY_ESCAPE 

escape key

KEYBOARD_KEY_USER_MOD_1 

user key modifier 1

KEYBOARD_KEY_USER_MOD_2 

user key modifier 2

KEYBOARD_KEY_USER_MOD_3 

user key modifier 3

KEYBOARD_KEY_USER_MOD_4 

user key modifier 4

KEYBOARD_KEY_USER_MOD_5 

user key modifier 5

KEYBOARD_KEY_USER_MOD_6 

user key modifier 6

KEYBOARD_KEY_USER_MOD_7 

user key modifier 7

KEYBOARD_KEY_SPACE 

ASCII code for ' '

KEYBOARD_KEY_EXCLAMATION_MARK 

ASCII code for '!'

KEYBOARD_KEY_QUOTATION_MARK 

ASCII code for '"'

KEYBOARD_KEY_NUMBER_SIGN 

ASCII code for '#'

KEYBOARD_KEY_DOLLAR_SIGN 

ASCII code for '$'

KEYBOARD_KEY_PERCENT_SIGN 

ASCII code for ''

KEYBOARD_KEY_AMPERSAND 

ASCII code for '&'

KEYBOARD_KEY_APOSTROPHE 

ASCII code for '\''

KEYBOARD_KEY_LEFT_PARENTHESES 

ASCII code for '('

KEYBOARD_KEY_RIGHT_PARENTHESES 

ASCII code for ')'

KEYBOARD_KEY_ASTERISK 

ASCII code for '*'

KEYBOARD_KEY_PLUS 

ASCII code for '+'

KEYBOARD_KEY_COMMA 

ASCII code for ','

KEYBOARD_KEY_HYPHEN 

ASCII code for '-'

KEYBOARD_KEY_PERIOD 

ASCII code for '.'

KEYBOARD_KEY_FORWARD_SLASH 

ASCII code for '/'

KEYBOARD_KEY_ZERO 

ASCII code for '0'

KEYBOARD_KEY_ONE 

ASCII code for '1'

KEYBOARD_KEY_TWO 

ASCII code for '2'

KEYBOARD_KEY_THREE 

ASCII code for '3'

KEYBOARD_KEY_FOUR 

ASCII code for '4'

KEYBOARD_KEY_FIVE 

ASCII code for '5'

KEYBOARD_KEY_SIX 

ASCII code for '6'

KEYBOARD_KEY_SEVEN 

ASCII code for '7'

KEYBOARD_KEY_EIGHT 

ASCII code for '8'

KEYBOARD_KEY_NINE 

ASCII code for '9'

KEYBOARD_KEY_COLON 

ASCII code for ':'

KEYBOARD_KEY_SEMICOLON 

ASCII code for ';'

KEYBOARD_KEY_LESS_THAN_SIGN 

ASCII code for '<'

KEYBOARD_KEY_EQUALS_SIGN 

ASCII code for '='

KEYBOARD_KEY_GREATER_THAN_SIGN 

ASCII code for '>'

KEYBOARD_KEY_QUESTION_MARK 

ASCII code for '?'

KEYBOARD_KEY_AT_SIGN 

ASCII code for '@'

KEYBOARD_KEY_UPPERCASE_A 

ASCII code for 'A'

KEYBOARD_KEY_UPPERCASE_B 

ASCII code for 'B'

KEYBOARD_KEY_UPPERCASE_C 

ASCII code for 'C'

KEYBOARD_KEY_UPPERCASE_D 

ASCII code for 'D'

KEYBOARD_KEY_UPPERCASE_E 

ASCII code for 'E'

KEYBOARD_KEY_UPPERCASE_F 

ASCII code for 'F'

KEYBOARD_KEY_UPPERCASE_G 

ASCII code for 'G'

KEYBOARD_KEY_UPPERCASE_H 

ASCII code for 'H'

KEYBOARD_KEY_UPPERCASE_I 

ASCII code for 'I'

KEYBOARD_KEY_UPPERCASE_J 

ASCII code for 'J'

KEYBOARD_KEY_UPPERCASE_K 

ASCII code for 'K'

KEYBOARD_KEY_UPPERCASE_L 

ASCII code for 'L'

KEYBOARD_KEY_UPPERCASE_M 

ASCII code for 'M'

KEYBOARD_KEY_UPPERCASE_N 

ASCII code for 'N'

KEYBOARD_KEY_UPPERCASE_O 

ASCII code for 'O'

KEYBOARD_KEY_UPPERCASE_P 

ASCII code for 'P'

KEYBOARD_KEY_UPPERCASE_Q 

ASCII code for 'Q'

KEYBOARD_KEY_UPPERCASE_R 

ASCII code for 'R'

KEYBOARD_KEY_UPPERCASE_S 

ASCII code for 'S'

KEYBOARD_KEY_UPPERCASE_T 

ASCII code for 'T'

KEYBOARD_KEY_UPPERCASE_U 

ASCII code for 'U'

KEYBOARD_KEY_UPPERCASE_V 

ASCII code for 'V'

KEYBOARD_KEY_UPPERCASE_W 

ASCII code for 'W'

KEYBOARD_KEY_UPPERCASE_X 

ASCII code for 'X'

KEYBOARD_KEY_UPPERCASE_Y 

ASCII code for 'Y'

KEYBOARD_KEY_UPPERCASE_Z 

ASCII code for 'Z'

KEYBOARD_KEY_LEFT_SQUARE_BRACKET 

ASCII code for '['

KEYBOARD_KEY_BACKSLASH 

ASCII code for '\'

KEYBOARD_KEY_RIGHT_SQUARE_BRACKET 

ASCII code for ']'

KEYBOARD_KEY_CARET 

ASCII code for '^'

KEYBOARD_KEY_UNDERSCORE 

ASCII code for '_'

KEYBOARD_KEY_OPENING_SINGLE_QUOTE 

ASCII code for '`'

KEYBOARD_KEY_LOWERCASE_A 

ASCII code for 'a'

KEYBOARD_KEY_LOWERCASE_B 

ASCII code for 'b'

KEYBOARD_KEY_LOWERCASE_C 

ASCII code for 'c'

KEYBOARD_KEY_LOWERCASE_D 

ASCII code for 'd'

KEYBOARD_KEY_LOWERCASE_E 

ASCII code for 'e'

KEYBOARD_KEY_LOWERCASE_F 

ASCII code for 'f'

KEYBOARD_KEY_LOWERCASE_G 

ASCII code for 'g'

KEYBOARD_KEY_LOWERCASE_H 

ASCII code for 'h'

KEYBOARD_KEY_LOWERCASE_I 

ASCII code for 'i'

KEYBOARD_KEY_LOWERCASE_J 

ASCII code for 'j'

KEYBOARD_KEY_LOWERCASE_K 

ASCII code for 'k'

KEYBOARD_KEY_LOWERCASE_L 

ASCII code for 'l'

KEYBOARD_KEY_LOWERCASE_M 

ASCII code for 'm'

KEYBOARD_KEY_LOWERCASE_N 

ASCII code for 'n'

KEYBOARD_KEY_LOWERCASE_O 

ASCII code for 'o'

KEYBOARD_KEY_LOWERCASE_P 

ASCII code for 'p'

KEYBOARD_KEY_LOWERCASE_Q 

ASCII code for 'q'

KEYBOARD_KEY_LOWERCASE_R 

ASCII code for 'r'

KEYBOARD_KEY_LOWERCASE_S 

ASCII code for 's'

KEYBOARD_KEY_LOWERCASE_T 

ASCII code for 't'

KEYBOARD_KEY_LOWERCASE_U 

ASCII code for 'u'

KEYBOARD_KEY_LOWERCASE_V 

ASCII code for 'v'

KEYBOARD_KEY_LOWERCASE_W 

ASCII code for 'w'

KEYBOARD_KEY_LOWERCASE_X 

ASCII code for 'x'

KEYBOARD_KEY_LOWERCASE_Y 

ASCII code for 'y'

KEYBOARD_KEY_LOWERCASE_Z 

ASCII code for 'z'

KEYBOARD_KEY_LEFT_CURLY_BRACE 

ASCII code for '{'

KEYBOARD_KEY_VERTICAL_LINE 

ASCII code for '|'

KEYBOARD_KEY_RIGHT_CURLY_BRACE 

ASCII code for '}'

KEYBOARD_KEY_TILDE 

ASCII code for '~'

KEYBOARD_KEY_DELETE 

ASCII code for DEL

KEYBOARD_KEY_F1 

Function Key 1

KEYBOARD_KEY_F2 

Function Key 2

KEYBOARD_KEY_F3 

Function Key 3

KEYBOARD_KEY_F4 

Function Key 4

KEYBOARD_KEY_F5 

Function Key 5

KEYBOARD_KEY_F6 

Function Key 6

KEYBOARD_KEY_F7 

Function Key 7

KEYBOARD_KEY_F8 

Function Key 8

KEYBOARD_KEY_F9 

Function Key 9

KEYBOARD_KEY_F10 

Function Key 10

KEYBOARD_KEY_F11 

Function Key 11

KEYBOARD_KEY_F12 

Function Key 12

KEYBOARD_KEY_USER_DEFINED_1 

User Defined Key 1

KEYBOARD_KEY_USER_DEFINED_2 

User Defined Key 2

KEYBOARD_KEY_USER_DEFINED_3 

User Defined Key 3

KEYBOARD_KEY_USER_DEFINED_4 

User Defined Key 4

KEYBOARD_KEY_USER_DEFINED_5 

User Defined Key 5

KEYBOARD_KEY_USER_DEFINED_6 

User Defined Key 6

KEYBOARD_KEY_USER_DEFINED_7 

User Defined Key 7

KEYBOARD_KEY_USER_DEFINED_8 

User Defined Key 8

KEYBOARD_KEY_USER_DEFINED_9 

User Defined Key 9

KEYBOARD_KEY_USER_DEFINED_10 

User Defined Key 10

KEYBOARD_KEY_USER_DEFINED_11 

User Defined Key 11

KEYBOARD_KEY_USER_DEFINED_12 

User Defined Key 12

KEYBOARD_KEY_USER_DEFINED_13 

User Defined Key 13

KEYBOARD_KEY_USER_DEFINED_14 

User Defined Key 14

KEYBOARD_KEY_USER_DEFINED_15 

User Defined Key 15

KEYBOARD_KEY_USER_DEFINED_16 

User Defined Key 16

KEYBOARD_KEY_USER_DEFINED_17 

User Defined Key 17

KEYBOARD_KEY_USER_DEFINED_18 

User Defined Key 18

KEYBOARD_KEY_USER_DEFINED_19 

User Defined Key 19

KEYBOARD_KEY_USER_DEFINED_20 

User Defined Key 20

KEYBOARD_KEY_USER_DEFINED_21 

User Defined Key 21

KEYBOARD_KEY_USER_DEFINED_22 

User Defined Key 22

KEYBOARD_KEY_USER_DEFINED_23 

User Defined Key 23

KEYBOARD_KEY_USER_DEFINED_24 

User Defined Key 24

KEYBOARD_KEY_USER_DEFINED_25 

User Defined Key 25

KEYBOARD_KEY_USER_DEFINED_26 

User Defined Key 26

KEYBOARD_KEY_USER_DEFINED_27 

User Defined Key 27

KEYBOARD_KEY_USER_DEFINED_28 

User Defined Key 28

KEYBOARD_KEY_USER_DEFINED_29 

User Defined Key 29

KEYBOARD_KEY_USER_DEFINED_30 

User Defined Key 30

KEYBOARD_KEY_USER_DEFINED_31 

User Defined Key 31

KEYBOARD_KEY_USER_DEFINED_32 

User Defined Key 32

keyboard modifier bit flags

Enumerator
KEYBOARD_MODIFIER_NONE 

no modifier keys are down

KEYBOARD_MODIFIER_SHIFT 

shift key is down

KEYBOARD_MODIFIER_CAPS_LOCK 

caps lock key is down

KEYBOARD_MODIFIER_CTRL 

ctrl key is down

KEYBOARD_MODIFIER_ALT 

alt key is down

KEYBOARD_MODIFIER_NUM_LOCK 

num lock key is down

KEYBOARD_MODIFIER_SCROLL_LOCK 

scroll lock key is down

KEYBOARD_MODIFIER_META 

meta key is down

KEYBOARD_MODIFIER_USER_MOD_1 

user defined key modifier 1 is down

KEYBOARD_MODIFIER_USER_MOD_2 

user defined key modifier 2 is down

KEYBOARD_MODIFIER_USER_MOD_3 

user defined key modifier 3 is down

KEYBOARD_MODIFIER_USER_MOD_4 

user defined key modifier 4 is down

KEYBOARD_MODIFIER_USER_MOD_5 

user defined key modifier 5 is down

KEYBOARD_MODIFIER_USER_MOD_6 

user defined key modifier 6 is down

KEYBOARD_MODIFIER_USER_MOD_7 

user defined key modifier 7 is down

mouse button bit flags

Enumerator
MOUSE_BUTTON_NONE 

no mouse button is down

MOUSE_BUTTON_LEFT 

left mouse button is down

MOUSE_BUTTON_MIDDLE 

middle mouse button is down

MOUSE_BUTTON_RIGHT 

right mouse button is down

MOUSE_BUTTON_USER_1 

user defined mouse button 1 is down

MOUSE_BUTTON_USER_2 

user defined mouse button 2 is down

MOUSE_BUTTON_USER_3 

user defined mouse button 3 is down

MOUSE_BUTTON_USER_4 

user defined mouse button 4 is down

MOUSE_BUTTON_USER_5 

user defined mouse button 5 is down

Member Data Documentation

EventType GlsEvent::eventType

type of event

GlsDisplayObject* GlsEvent::initiator

object that emitted the event else GLS_NULL

KeyboardKey GlsEvent::keyboardKey

keyboard key

GlsUInt32 GlsEvent::keyboardModifier

keyboard modifier ( KeyboardModifier bit flags )

GlsUInt32 GlsEvent::mouseButton

mouse button state ( MouseButton bit flags )

GlsUInt32 GlsEvent::userData

user defined data

GlsVector2D GlsEvent::windowCoord

window coordinate associated with event