Drag[en]gine Script Module DragonScript  1.23
Dragengine.InputEventKey Class Reference

InputEvent key codes. More...

Inheritance diagram for Dragengine.InputEventKey:

Static Public Attributes

static final int a = 1
 
static final int advanced1 = 49
 
static final int advanced2 = 50
 
static final int alt = 47
 
static final int arrowDown = 54
 
static final int arrowLeft = 51
 
static final int arrowRight = 53
 
static final int arrowUp = 52
 
static final int b = 2
 
static final int backspace = 38
 
static final int c = 3
 
static final int control = 46
 
static final int d = 4
 
static final int delete = 44
 
static final int digit0 = 27
 
static final int digit1 = 28
 
static final int digit2 = 29
 
static final int digit3 = 30
 
static final int digit4 = 31
 
static final int digit5 = 32
 
static final int digit6 = 33
 
static final int digit7 = 34
 
static final int digit8 = 35
 
static final int digit9 = 36
 
static final int e = 5
 
static final int enter = 40
 
static final int escape = 42
 
static final int f = 6
 
static final int f1 = 59
 
static final int f10 = 68
 
static final int f11 = 69
 
static final int f12 = 70
 
static final int f2 = 60
 
static final int f3 = 61
 
static final int f4 = 62
 
static final int f5 = 63
 
static final int f6 = 64
 
static final int f7 = 65
 
static final int f8 = 66
 
static final int f9 = 67
 
static final int g = 7
 
static final int h = 8
 
static final int home = 57
 
static final int i = 9
 
static final int insert = 43
 
static final int j = 10
 
static final int k = 11
 
static final int l = 12
 
static final int last = 58
 
static final int m = 13
 
static final int meta = 48
 
static final int n = 14
 
static final int o = 15
 
static final int p = 16
 
static final int pageDown = 56
 
static final int pageUp = 55
 
static final int pause = 41
 
static final int q = 17
 
static final int r = 18
 
static final int s = 19
 
static final int shift = 45
 
static final int space = 37
 
static final int t = 20
 
static final int tab = 39
 
static final int u = 21
 
static final int undefined = 0
 
static final int v = 22
 
static final int w = 23
 
static final int x = 24
 
static final int y = 25
 
static final int z = 26
 

Detailed Description

InputEvent key codes.

Identify keyboard keys without matching particular OS or hardware. This is used in situations like UI where keyboard input has to be used without the user assinging first a binding to input device buttons. Multiple keys can return the same key code. For example keypad number or arrow keys return the same code as regular number and arrow keys. Game scripts should use key character or button ID using bindings to listen to specific keys on a keyboard if possible.

Key codes are provided for InputEventType.keyPress and InputEventType.keyRelease only.

Member Data Documentation

◆ a

final int Dragengine.InputEventKey.a = 1
static

◆ advanced1

final int Dragengine.InputEventKey.advanced1 = 49
static

◆ advanced2

final int Dragengine.InputEventKey.advanced2 = 50
static

◆ alt

final int Dragengine.InputEventKey.alt = 47
static

◆ arrowDown

final int Dragengine.InputEventKey.arrowDown = 54
static

◆ arrowLeft

final int Dragengine.InputEventKey.arrowLeft = 51
static

◆ arrowRight

final int Dragengine.InputEventKey.arrowRight = 53
static

◆ arrowUp

final int Dragengine.InputEventKey.arrowUp = 52
static

◆ b

final int Dragengine.InputEventKey.b = 2
static

◆ backspace

final int Dragengine.InputEventKey.backspace = 38
static

◆ c

final int Dragengine.InputEventKey.c = 3
static

◆ control

final int Dragengine.InputEventKey.control = 46
static

◆ d

final int Dragengine.InputEventKey.d = 4
static

◆ delete

final int Dragengine.InputEventKey.delete = 44
static

◆ digit0

final int Dragengine.InputEventKey.digit0 = 27
static

◆ digit1

final int Dragengine.InputEventKey.digit1 = 28
static

◆ digit2

final int Dragengine.InputEventKey.digit2 = 29
static

◆ digit3

final int Dragengine.InputEventKey.digit3 = 30
static

◆ digit4

final int Dragengine.InputEventKey.digit4 = 31
static

◆ digit5

final int Dragengine.InputEventKey.digit5 = 32
static

◆ digit6

final int Dragengine.InputEventKey.digit6 = 33
static

◆ digit7

final int Dragengine.InputEventKey.digit7 = 34
static

◆ digit8

final int Dragengine.InputEventKey.digit8 = 35
static

◆ digit9

final int Dragengine.InputEventKey.digit9 = 36
static

◆ e

final int Dragengine.InputEventKey.e = 5
static

◆ enter

final int Dragengine.InputEventKey.enter = 40
static

◆ escape

final int Dragengine.InputEventKey.escape = 42
static

◆ f

final int Dragengine.InputEventKey.f = 6
static

◆ f1

final int Dragengine.InputEventKey.f1 = 59
static

◆ f10

final int Dragengine.InputEventKey.f10 = 68
static

◆ f11

final int Dragengine.InputEventKey.f11 = 69
static

◆ f12

final int Dragengine.InputEventKey.f12 = 70
static

◆ f2

final int Dragengine.InputEventKey.f2 = 60
static

◆ f3

final int Dragengine.InputEventKey.f3 = 61
static

◆ f4

final int Dragengine.InputEventKey.f4 = 62
static

◆ f5

final int Dragengine.InputEventKey.f5 = 63
static

◆ f6

final int Dragengine.InputEventKey.f6 = 64
static

◆ f7

final int Dragengine.InputEventKey.f7 = 65
static

◆ f8

final int Dragengine.InputEventKey.f8 = 66
static

◆ f9

final int Dragengine.InputEventKey.f9 = 67
static

◆ g

final int Dragengine.InputEventKey.g = 7
static

◆ h

final int Dragengine.InputEventKey.h = 8
static

◆ home

final int Dragengine.InputEventKey.home = 57
static

◆ i

final int Dragengine.InputEventKey.i = 9
static

◆ insert

final int Dragengine.InputEventKey.insert = 43
static

◆ j

final int Dragengine.InputEventKey.j = 10
static

◆ k

final int Dragengine.InputEventKey.k = 11
static

◆ l

final int Dragengine.InputEventKey.l = 12
static

◆ last

final int Dragengine.InputEventKey.last = 58
static

◆ m

final int Dragengine.InputEventKey.m = 13
static

◆ meta

final int Dragengine.InputEventKey.meta = 48
static

◆ n

final int Dragengine.InputEventKey.n = 14
static

◆ o

final int Dragengine.InputEventKey.o = 15
static

◆ p

final int Dragengine.InputEventKey.p = 16
static

◆ pageDown

final int Dragengine.InputEventKey.pageDown = 56
static

◆ pageUp

final int Dragengine.InputEventKey.pageUp = 55
static

◆ pause

final int Dragengine.InputEventKey.pause = 41
static

◆ q

final int Dragengine.InputEventKey.q = 17
static

◆ r

final int Dragengine.InputEventKey.r = 18
static

◆ s

final int Dragengine.InputEventKey.s = 19
static

◆ shift

final int Dragengine.InputEventKey.shift = 45
static

◆ space

final int Dragengine.InputEventKey.space = 37
static

◆ t

final int Dragengine.InputEventKey.t = 20
static

◆ tab

final int Dragengine.InputEventKey.tab = 39
static

◆ u

final int Dragengine.InputEventKey.u = 21
static

◆ undefined

final int Dragengine.InputEventKey.undefined = 0
static

◆ v

final int Dragengine.InputEventKey.v = 22
static

◆ w

final int Dragengine.InputEventKey.w = 23
static

◆ x

final int Dragengine.InputEventKey.x = 24
static

◆ y

final int Dragengine.InputEventKey.y = 25
static

◆ z

final int Dragengine.InputEventKey.z = 26
static

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