Drag[en]gine Script Module DragonScript Script API  1.0
KeyEvent Class Reference

Immutable keyboard event. More...

Inheritance diagram for KeyEvent:
ModifiableEvent Event

Public Member Functions

bool equalKeyEvents (KeyEvent event)
 Key events are equal. More...
 
int getKeyChar ()
 Printable key character if existing. More...
 
int getKeyCode ()
 Key code. More...
 
KeyEvent new (Object source, int id, int keyCode, int modifiers)
 Create event. More...
 
KeyEvent new (Object source, int id, int keyCode, int modifiers, int keyChar)
 Create event. More...
 
- Public Member Functions inherited from ModifiableEvent
int getModifiers ()
 Modifier keys. More...
 
ModifiableEvent new (Object source, int id, int modifiers)
 Create event. More...
 
- Public Member Functions inherited from Event
int getIdentifier ()
 Event identifier. More...
 
Object getSource ()
 Event source. More...
 
Event new (Object source, int id)
 Create event. More...
 

Static Public Member Functions

static bool isKeyEvent (int identifier)
 Event identifier is a key event identifier. More...
 

Public Attributes

final int ID_KEY_PRESSED = 10
 
final int ID_KEY_RELEASED = 11
 
final int ID_KEY_TYPED = 12
 
final int KEY_0 = 0h30
 
final int KEY_1 = 0h31
 
final int KEY_2 = 0h32
 
final int KEY_3 = 0h33
 
final int KEY_4 = 0h34
 
final int KEY_5 = 0h35
 
final int KEY_6 = 0h36
 
final int KEY_7 = 0h37
 
final int KEY_8 = 0h38
 
final int KEY_9 = 0h39
 
final int KEY_A = 0h61
 
final int KEY_AMPERSANT = 0h26
 
final int KEY_APOSTROPHE = 0h27
 
final int KEY_ASTERISK = 0h2a
 
final int KEY_AT = 0h40
 
final int KEY_B = 0h62
 
final int KEY_BACK = 0h08
 
final int KEY_BACKSLASH = 0h5c
 
final int KEY_BAR = 0h7c
 
final int KEY_BEGIN = 0h58
 
final int KEY_BRACERIGHT = 0h7d
 
final int KEY_BROKENBAR = 0ha6
 
final int KEY_C = 0h63
 
final int KEY_CAPSLOCK = 0he5
 
final int KEY_CENT = 0ha2
 
final int KEY_CIRCUM = 0h5e
 
final int KEY_CLEAR = 0h0b
 
final int KEY_COLON = 0h3a
 
final int KEY_COMMA = 0h2c
 
final int KEY_COPYRIGHT = 0ha9
 
final int KEY_CURRENCY = 0ha4
 
final int KEY_D = 0h64
 
final int KEY_DBLQUOTE = 0h22
 
final int KEY_DELETE = 0hff
 
final int KEY_DIAERESIS = 0ha8
 
final int KEY_DOLLAR = 0h24
 
final int KEY_DOWN = 0h54
 
final int KEY_E = 0h65
 
final int KEY_END = 0h57
 
final int KEY_EQUAL = 0h3d
 
final int KEY_ESCAPE = 0h1b
 
final int KEY_EXCLAM = 0h21
 
final int KEY_EXCLAMDOWN = 0ha1
 
final int KEY_F = 0h66
 
final int KEY_F1 = 0hbe
 
final int KEY_F10 = 0hc7
 
final int KEY_F11 = 0hc8
 
final int KEY_F12 = 0hc9
 
final int KEY_F13 = 0hca
 
final int KEY_F14 = 0hcb
 
final int KEY_F15 = 0hcc
 
final int KEY_F16 = 0hcd
 
final int KEY_F17 = 0hce
 
final int KEY_F18 = 0hcf
 
final int KEY_F19 = 0hd0
 
final int KEY_F2 = 0hbf
 
final int KEY_F20 = 0hd1
 
final int KEY_F21 = 0hd2
 
final int KEY_F22 = 0hd3
 
final int KEY_F23 = 0hd4
 
final int KEY_F24 = 0hd5
 
final int KEY_F25 = 0hd6
 
final int KEY_F26 = 0hd7
 
final int KEY_F27 = 0hd8
 
final int KEY_F28 = 0hd9
 
final int KEY_F29 = 0hda
 
final int KEY_F3 = 0hc0
 
final int KEY_F30 = 0hdb
 
final int KEY_F31 = 0hdc
 
final int KEY_F32 = 0hdd
 
final int KEY_F33 = 0hde
 
final int KEY_F34 = 0hdf
 
final int KEY_F35 = 0he0
 
final int KEY_F4 = 0hc1
 
final int KEY_F5 = 0hc2
 
final int KEY_F6 = 0hc3
 
final int KEY_F7 = 0hc4
 
final int KEY_F8 = 0hc5
 
final int KEY_F9 = 0hc6
 
final int KEY_G = 0h67
 
final int KEY_GREATER = 0h3e
 
final int KEY_H = 0h68
 
final int KEY_HOME = 0h50
 
final int KEY_I = 0h69
 
final int KEY_J = 0h6a
 
final int KEY_K = 0h6b
 
final int KEY_KP_0 = 0hb0
 
final int KEY_KP_1 = 0hb1
 
final int KEY_KP_2 = 0hb2
 
final int KEY_KP_3 = 0hb3
 
final int KEY_KP_4 = 0hb4
 
final int KEY_KP_5 = 0hb5
 
final int KEY_KP_6 = 0hb6
 
final int KEY_KP_7 = 0hb7
 
final int KEY_KP_8 = 0hb8
 
final int KEY_KP_9 = 0hb9
 
final int KEY_KP_ADD = 0hab
 
final int KEY_KP_BEGIN = 0h9d
 
final int KEY_KP_DECIMAL = 0hae
 
final int KEY_KP_DELETE = 0h9f
 
final int KEY_KP_DIVIDE = 0haf
 
final int KEY_KP_DOWN = 0h99
 
final int KEY_KP_END = 0h9c
 
final int KEY_KP_ENTER = 0h8d
 
final int KEY_KP_EQUAL = 0hbd
 
final int KEY_KP_HOME = 0h95
 
final int KEY_KP_INSERT = 0h9e
 
final int KEY_KP_LEFT = 0h96
 
final int KEY_KP_PAGEDOWN = 0h9b
 
final int KEY_KP_PAGEUP = 0h9a
 
final int KEY_KP_RIGHT = 0h98
 
final int KEY_KP_SEPARATOR = 0hac
 
final int KEY_KP_SPACE = 0h80
 
final int KEY_KP_SUBTRACT = 0had
 
final int KEY_KP_TAB = 0h89
 
final int KEY_KP_UP = 0h97
 
final int KEY_L = 0h6c
 
final int KEY_LALT = 0he9
 
final int KEY_LCONTROL = 0he3
 
final int KEY_LEFT = 0h51
 
final int KEY_LEFTBRACE = 0h7b
 
final int KEY_LEFTBRACKET = 0h5b
 
final int KEY_LEFTPAREN = 0h28
 
final int KEY_LESS = 0h3c
 
final int KEY_LHYPER = 0hed
 
final int KEY_LINEFEED = 0h0a
 
final int KEY_LMETA = 0he7
 
final int KEY_LSHIFT = 0he1
 
final int KEY_LSUPER = 0heb
 
final int KEY_M = 0h6d
 
final int KEY_MINUS = 0h2d
 
final int KEY_N = 0h6e
 
final int KEY_NOBRSP = 0ha0
 
final int KEY_NUMLOCK = 0h7f
 
final int KEY_NUMSIGN = 0h23
 
final int KEY_O = 0h6f
 
final int KEY_ORDFEM = 0haa
 
final int KEY_P = 0h70
 
final int KEY_PAGEDOWN = 0h56
 
final int KEY_PAGEUP = 0h55
 
final int KEY_PAUSE = 0h13
 
final int KEY_PERCENT = 0h25
 
final int KEY_PERIOD = 0h2e
 
final int KEY_PLUS = 0h2b
 
final int KEY_Q = 0h71
 
final int KEY_QUESTION = 0h3f
 
final int KEY_R = 0h72
 
final int KEY_RALT = 0hea
 
final int KEY_RCONTROL = 0he4
 
final int KEY_RETURN = 0h0d
 
final int KEY_RHYPER = 0hee
 
final int KEY_RIGHT = 0h53
 
final int KEY_RIGHTBRACKET = 0h5d
 
final int KEY_RIGHTPAREN = 0h29
 
final int KEY_RMETA = 0he8
 
final int KEY_RSHIFT = 0he2
 
final int KEY_RSUPER = 0hec
 
final int KEY_S = 0h73
 
final int KEY_SCROLLLOCK = 0h14
 
final int KEY_SECTION = 0ha7
 
final int KEY_SEMICOLON = 0h3b
 
final int KEY_SHIFTLOCK = 0he6
 
final int KEY_SLASH = 0h2f
 
final int KEY_SPACE = 0h20
 
final int KEY_STERLING = 0ha3
 
final int KEY_SYSREQ = 0h15
 
final int KEY_T = 0h74
 
final int KEY_TAB = 0h09
 
final int KEY_TILDE = 0h7e
 
final int KEY_U = 0h75
 
final int KEY_UNDERSCORE = 0h5f
 
final int KEY_UNKNOWN = 0h10000
 
final int KEY_UP = 0h52
 
final int KEY_V = 0h76
 
final int KEY_W = 0h77
 
final int KEY_X = 0h78
 
final int KEY_Y = 0h79
 
final int KEY_YEN = 0ha5
 
final int KEY_Z = 0h7a
 
- Public Attributes inherited from ModifiableEvent
final int ALT = 0h4
 Alt key pressed. More...
 
final int CONTROL = 0h2
 Control key pressed. More...
 
final int SHIFT = 0h1
 Shift key pressed. More...
 

Detailed Description

Immutable keyboard event.

Stores the code of the key involved as well as the character it does represent if one exists.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ equalKeyEvents()

bool equalKeyEvents ( KeyEvent  event)

Key events are equal.

Two key events equal if they have the same identifier and key code.

§ getKeyChar()

int getKeyChar ( )

Printable key character if existing.

§ getKeyCode()

int getKeyCode ( )

Key code.

§ isKeyEvent()

static bool isKeyEvent ( int  identifier)
static

Event identifier is a key event identifier.

§ new() [1/2]

KeyEvent new ( Object  source,
int  id,
int  keyCode,
int  modifiers 
)

Create event.

§ new() [2/2]

KeyEvent new ( Object  source,
int  id,
int  keyCode,
int  modifiers,
int  keyChar 
)

Create event.

Member Data Documentation

§ ID_KEY_PRESSED

final int ID_KEY_PRESSED = 10

Key pressed event idenfitier

§ ID_KEY_RELEASED

final int ID_KEY_RELEASED = 11

Key released event idenfitier

§ ID_KEY_TYPED

final int ID_KEY_TYPED = 12

Key typed event idenfitier

§ KEY_0

final int KEY_0 = 0h30

key 0

§ KEY_1

final int KEY_1 = 0h31

key 1

§ KEY_2

final int KEY_2 = 0h32

key 2

§ KEY_3

final int KEY_3 = 0h33

key 3

§ KEY_4

final int KEY_4 = 0h34

key 4

§ KEY_5

final int KEY_5 = 0h35

key 5

§ KEY_6

final int KEY_6 = 0h36

key 6

§ KEY_7

final int KEY_7 = 0h37

key 7

§ KEY_8

final int KEY_8 = 0h38

key 8

§ KEY_9

final int KEY_9 = 0h39

key 9

§ KEY_A

final int KEY_A = 0h61

a

§ KEY_AMPERSANT

final int KEY_AMPERSANT = 0h26

ampersant

§ KEY_APOSTROPHE

final int KEY_APOSTROPHE = 0h27

apostrpohe

§ KEY_ASTERISK

final int KEY_ASTERISK = 0h2a

asterisk

§ KEY_AT

final int KEY_AT = 0h40

at

§ KEY_B

final int KEY_B = 0h62

b

§ KEY_BACK

final int KEY_BACK = 0h08

back space

§ KEY_BACKSLASH

final int KEY_BACKSLASH = 0h5c

backslash

§ KEY_BAR

final int KEY_BAR = 0h7c

bar

§ KEY_BEGIN

final int KEY_BEGIN = 0h58

begin

§ KEY_BRACERIGHT

final int KEY_BRACERIGHT = 0h7d

brace right

§ KEY_BROKENBAR

final int KEY_BROKENBAR = 0ha6

broken bar

§ KEY_C

final int KEY_C = 0h63

c

§ KEY_CAPSLOCK

final int KEY_CAPSLOCK = 0he5

caps lock

§ KEY_CENT

final int KEY_CENT = 0ha2

cent

§ KEY_CIRCUM

final int KEY_CIRCUM = 0h5e

circum

§ KEY_CLEAR

final int KEY_CLEAR = 0h0b

clear

§ KEY_COLON

final int KEY_COLON = 0h3a

colon

§ KEY_COMMA

final int KEY_COMMA = 0h2c

comma

§ KEY_COPYRIGHT

final int KEY_COPYRIGHT = 0ha9

copyright

§ KEY_CURRENCY

final int KEY_CURRENCY = 0ha4

currency

§ KEY_D

final int KEY_D = 0h64

d

§ KEY_DBLQUOTE

final int KEY_DBLQUOTE = 0h22

double quote

§ KEY_DELETE

final int KEY_DELETE = 0hff

delete

§ KEY_DIAERESIS

final int KEY_DIAERESIS = 0ha8

diaeresis

§ KEY_DOLLAR

final int KEY_DOLLAR = 0h24

dollar

§ KEY_DOWN

final int KEY_DOWN = 0h54

down arrow

§ KEY_E

final int KEY_E = 0h65

e

§ KEY_END

final int KEY_END = 0h57

end

§ KEY_EQUAL

final int KEY_EQUAL = 0h3d

equal

§ KEY_ESCAPE

final int KEY_ESCAPE = 0h1b

escape

§ KEY_EXCLAM

final int KEY_EXCLAM = 0h21

exclamation

§ KEY_EXCLAMDOWN

final int KEY_EXCLAMDOWN = 0ha1

exlamation mark down

§ KEY_F

final int KEY_F = 0h66

f

§ KEY_F1

final int KEY_F1 = 0hbe

f1

§ KEY_F10

final int KEY_F10 = 0hc7

f10

§ KEY_F11

final int KEY_F11 = 0hc8

f11

§ KEY_F12

final int KEY_F12 = 0hc9

f12

§ KEY_F13

final int KEY_F13 = 0hca

f13

§ KEY_F14

final int KEY_F14 = 0hcb

f14

§ KEY_F15

final int KEY_F15 = 0hcc

f15

§ KEY_F16

final int KEY_F16 = 0hcd

f16

§ KEY_F17

final int KEY_F17 = 0hce

f17

§ KEY_F18

final int KEY_F18 = 0hcf

f18

§ KEY_F19

final int KEY_F19 = 0hd0

f19

§ KEY_F2

final int KEY_F2 = 0hbf

f2

§ KEY_F20

final int KEY_F20 = 0hd1

f20

§ KEY_F21

final int KEY_F21 = 0hd2

f21

§ KEY_F22

final int KEY_F22 = 0hd3

f22

§ KEY_F23

final int KEY_F23 = 0hd4

f23

§ KEY_F24

final int KEY_F24 = 0hd5

f24

§ KEY_F25

final int KEY_F25 = 0hd6

f25

§ KEY_F26

final int KEY_F26 = 0hd7

f26

§ KEY_F27

final int KEY_F27 = 0hd8

f27

§ KEY_F28

final int KEY_F28 = 0hd9

f28

§ KEY_F29

final int KEY_F29 = 0hda

f29

§ KEY_F3

final int KEY_F3 = 0hc0

f3

§ KEY_F30

final int KEY_F30 = 0hdb

f30

§ KEY_F31

final int KEY_F31 = 0hdc

f31

§ KEY_F32

final int KEY_F32 = 0hdd

f32

§ KEY_F33

final int KEY_F33 = 0hde

f33

§ KEY_F34

final int KEY_F34 = 0hdf

f34

§ KEY_F35

final int KEY_F35 = 0he0

f35

§ KEY_F4

final int KEY_F4 = 0hc1

f4

§ KEY_F5

final int KEY_F5 = 0hc2

f5

§ KEY_F6

final int KEY_F6 = 0hc3

f6

§ KEY_F7

final int KEY_F7 = 0hc4

f7

§ KEY_F8

final int KEY_F8 = 0hc5

f8

§ KEY_F9

final int KEY_F9 = 0hc6

f9

§ KEY_G

final int KEY_G = 0h67

g

§ KEY_GREATER

final int KEY_GREATER = 0h3e

greater

§ KEY_H

final int KEY_H = 0h68

h

§ KEY_HOME

final int KEY_HOME = 0h50

home

§ KEY_I

final int KEY_I = 0h69

i

§ KEY_J

final int KEY_J = 0h6a

j

§ KEY_K

final int KEY_K = 0h6b

k

§ KEY_KP_0

final int KEY_KP_0 = 0hb0

keypad 0

§ KEY_KP_1

final int KEY_KP_1 = 0hb1

keypad 1

§ KEY_KP_2

final int KEY_KP_2 = 0hb2

keypad 2

§ KEY_KP_3

final int KEY_KP_3 = 0hb3

keypad 3

§ KEY_KP_4

final int KEY_KP_4 = 0hb4

keypad 4

§ KEY_KP_5

final int KEY_KP_5 = 0hb5

keypad 5

§ KEY_KP_6

final int KEY_KP_6 = 0hb6

keypad 6

§ KEY_KP_7

final int KEY_KP_7 = 0hb7

keypad 7

§ KEY_KP_8

final int KEY_KP_8 = 0hb8

keypad 8

§ KEY_KP_9

final int KEY_KP_9 = 0hb9

keypad 9

§ KEY_KP_ADD

final int KEY_KP_ADD = 0hab

keypad add

§ KEY_KP_BEGIN

final int KEY_KP_BEGIN = 0h9d

keypad begin

§ KEY_KP_DECIMAL

final int KEY_KP_DECIMAL = 0hae

keypad decimal

§ KEY_KP_DELETE

final int KEY_KP_DELETE = 0h9f

keypad delete

§ KEY_KP_DIVIDE

final int KEY_KP_DIVIDE = 0haf

keypad divide

§ KEY_KP_DOWN

final int KEY_KP_DOWN = 0h99

keypad down

§ KEY_KP_END

final int KEY_KP_END = 0h9c

keypad end

§ KEY_KP_ENTER

final int KEY_KP_ENTER = 0h8d

keypad enter

§ KEY_KP_EQUAL

final int KEY_KP_EQUAL = 0hbd

keypad equal

§ KEY_KP_HOME

final int KEY_KP_HOME = 0h95

keypad home

§ KEY_KP_INSERT

final int KEY_KP_INSERT = 0h9e

keypad insert

§ KEY_KP_LEFT

final int KEY_KP_LEFT = 0h96

keypad left

§ KEY_KP_PAGEDOWN

final int KEY_KP_PAGEDOWN = 0h9b

keypad page down

§ KEY_KP_PAGEUP

final int KEY_KP_PAGEUP = 0h9a

keypad page up

§ KEY_KP_RIGHT

final int KEY_KP_RIGHT = 0h98

keypad right

§ KEY_KP_SEPARATOR

final int KEY_KP_SEPARATOR = 0hac

keypad separator

§ KEY_KP_SPACE

final int KEY_KP_SPACE = 0h80

keypad space

§ KEY_KP_SUBTRACT

final int KEY_KP_SUBTRACT = 0had

keypad subtract

§ KEY_KP_TAB

final int KEY_KP_TAB = 0h89

keypad tab

§ KEY_KP_UP

final int KEY_KP_UP = 0h97

keypad up

§ KEY_L

final int KEY_L = 0h6c

l

§ KEY_LALT

final int KEY_LALT = 0he9

left alt

§ KEY_LCONTROL

final int KEY_LCONTROL = 0he3

left control

§ KEY_LEFT

final int KEY_LEFT = 0h51

left arrow

§ KEY_LEFTBRACE

final int KEY_LEFTBRACE = 0h7b

brace left

§ KEY_LEFTBRACKET

final int KEY_LEFTBRACKET = 0h5b

bracket left

§ KEY_LEFTPAREN

final int KEY_LEFTPAREN = 0h28

left parenthese

§ KEY_LESS

final int KEY_LESS = 0h3c

less

§ KEY_LHYPER

final int KEY_LHYPER = 0hed

left hyper

§ KEY_LINEFEED

final int KEY_LINEFEED = 0h0a

line feed

§ KEY_LMETA

final int KEY_LMETA = 0he7

left meta

§ KEY_LSHIFT

final int KEY_LSHIFT = 0he1

left shift

§ KEY_LSUPER

final int KEY_LSUPER = 0heb

left super

§ KEY_M

final int KEY_M = 0h6d

m

§ KEY_MINUS

final int KEY_MINUS = 0h2d

minus

§ KEY_N

final int KEY_N = 0h6e

n

§ KEY_NOBRSP

final int KEY_NOBRSP = 0ha0

no break space

§ KEY_NUMLOCK

final int KEY_NUMLOCK = 0h7f

num lock

§ KEY_NUMSIGN

final int KEY_NUMSIGN = 0h23

number sign

§ KEY_O

final int KEY_O = 0h6f

o

§ KEY_ORDFEM

final int KEY_ORDFEM = 0haa

ord feminine

§ KEY_P

final int KEY_P = 0h70

p

§ KEY_PAGEDOWN

final int KEY_PAGEDOWN = 0h56

page down

§ KEY_PAGEUP

final int KEY_PAGEUP = 0h55

page up

§ KEY_PAUSE

final int KEY_PAUSE = 0h13

pause

§ KEY_PERCENT

final int KEY_PERCENT = 0h25

percent

§ KEY_PERIOD

final int KEY_PERIOD = 0h2e

period

§ KEY_PLUS

final int KEY_PLUS = 0h2b

plus

§ KEY_Q

final int KEY_Q = 0h71

q

§ KEY_QUESTION

final int KEY_QUESTION = 0h3f

question

§ KEY_R

final int KEY_R = 0h72

r

§ KEY_RALT

final int KEY_RALT = 0hea

right alt

§ KEY_RCONTROL

final int KEY_RCONTROL = 0he4

right control

§ KEY_RETURN

final int KEY_RETURN = 0h0d

return

§ KEY_RHYPER

final int KEY_RHYPER = 0hee

right hyper

§ KEY_RIGHT

final int KEY_RIGHT = 0h53

right arrow

§ KEY_RIGHTBRACKET

final int KEY_RIGHTBRACKET = 0h5d

bracket right

§ KEY_RIGHTPAREN

final int KEY_RIGHTPAREN = 0h29

right parenthese

§ KEY_RMETA

final int KEY_RMETA = 0he8

right meta

§ KEY_RSHIFT

final int KEY_RSHIFT = 0he2

right shift

§ KEY_RSUPER

final int KEY_RSUPER = 0hec

right super

§ KEY_S

final int KEY_S = 0h73

s

§ KEY_SCROLLLOCK

final int KEY_SCROLLLOCK = 0h14

scroll lock

§ KEY_SECTION

final int KEY_SECTION = 0ha7

section

§ KEY_SEMICOLON

final int KEY_SEMICOLON = 0h3b

semicolon

§ KEY_SHIFTLOCK

final int KEY_SHIFTLOCK = 0he6

shift lock

§ KEY_SLASH

final int KEY_SLASH = 0h2f

slash

§ KEY_SPACE

final int KEY_SPACE = 0h20

space

§ KEY_STERLING

final int KEY_STERLING = 0ha3

sterling

§ KEY_SYSREQ

final int KEY_SYSREQ = 0h15

sys req

§ KEY_T

final int KEY_T = 0h74

t

§ KEY_TAB

final int KEY_TAB = 0h09

tab

§ KEY_TILDE

final int KEY_TILDE = 0h7e

tilde

§ KEY_U

final int KEY_U = 0h75

u

§ KEY_UNDERSCORE

final int KEY_UNDERSCORE = 0h5f

underscore

§ KEY_UNKNOWN

final int KEY_UNKNOWN = 0h10000

undefined or not recognizable key

§ KEY_UP

final int KEY_UP = 0h52

up arrow

§ KEY_V

final int KEY_V = 0h76

v

§ KEY_W

final int KEY_W = 0h77

w

§ KEY_X

final int KEY_X = 0h78

x

§ KEY_Y

final int KEY_Y = 0h79

y

§ KEY_YEN

final int KEY_YEN = 0ha5

yen

§ KEY_Z

final int KEY_Z = 0h7a

z


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