phina.js.d.ts
Preparing search index...
phina
input
Keyboard
Interface Keyboard
interface
Keyboard
{
cachePositions
:
phina
.
geom
.
Vector2
[]
;
deltaPosition
:
phina
.
geom
.
Vector2
;
down
:
{
[
key
:
number
]:
boolean
}
;
dx
:
number
;
dy
:
number
;
flags
:
number
;
flickVelocity
:
phina
.
geom
.
Vector2
;
fx
:
number
;
fy
:
number
;
key
:
{
[
key
:
number
]:
boolean
}
;
last
:
{
[
key
:
number
]:
boolean
}
;
maxCacheNum
:
number
;
maxDistance
:
number
;
minDistance
:
number
;
position
:
phina
.
geom
.
Vector2
;
press
:
{
[
key
:
number
]:
boolean
}
;
prevPosition
:
phina
.
geom
.
Vector2
;
startPosition
:
phina
.
geom
.
Vector2
;
up
:
{
[
key
:
number
]:
boolean
}
;
x
:
number
;
y
:
number
;
addEventListener
(
type
:
string
,
listener
:
Function
)
:
this
;
clear
(
type
:
string
)
:
this
;
clearEventListener
(
type
:
string
)
:
this
;
clearKey
()
:
this
;
dispatchEvent
(
e
:
{
type
:
string
}
)
:
this
;
dispatchEventByType
(
type
:
string
,
param
:
object
)
:
this
;
fire
(
e
:
{
type
:
string
}
)
:
this
;
flare
(
type
:
string
,
param
?:
object
)
:
this
;
getKey
(
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
,
)
:
boolean
;
getKeyAngle
()
:
[
boolean
,
boolean
,
boolean
,
boolean
]
;
getKeyDirection
()
:
phina
.
geom
.
Vector2
;
getKeyDown
(
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
,
)
:
boolean
;
getKeyUp
(
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
,
)
:
boolean
;
has
(
type
:
string
)
:
boolean
;
hasEventListener
(
type
:
string
)
:
boolean
;
off
(
type
:
string
,
listener
:
Function
)
:
this
;
on
(
type
:
string
,
listener
:
Function
)
:
this
;
one
(
type
:
string
,
listener
:
Function
)
:
this
;
removeEventListener
(
type
:
string
,
listener
:
Function
)
:
this
;
setKey
(
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
,
flag
:
boolean
,
)
:
this
;
update
()
:
void
;
}
Hierarchy (
View Summary
)
phina
.
input
.
Input
Keyboard
Index
Properties
cache
Positions
delta
Position
down
dx
dy
flags
flick
Velocity
fx
fy
key
last
max
Cache
Num
max
Distance
min
Distance
position
press
prev
Position
start
Position
up
x
y
Methods
add
Event
Listener
clear
clear
Event
Listener
clear
Key
dispatch
Event
dispatch
Event
By
Type
fire
flare
get
Key
get
Key
Angle
get
Key
Direction
get
Key
Down
get
Key
Up
has
has
Event
Listener
off
on
one
remove
Event
Listener
set
Key
update
Properties
cache
Positions
cachePositions
:
phina
.
geom
.
Vector2
[]
delta
Position
deltaPosition
:
phina
.
geom
.
Vector2
down
down
:
{
[
key
:
number
]:
boolean
}
dx
dx
:
number
dy
dy
:
number
flags
flags
:
number
flick
Velocity
flickVelocity
:
phina
.
geom
.
Vector2
fx
fx
:
number
fy
fy
:
number
key
key
:
{
[
key
:
number
]:
boolean
}
last
last
:
{
[
key
:
number
]:
boolean
}
max
Cache
Num
maxCacheNum
:
number
max
Distance
maxDistance
:
number
min
Distance
minDistance
:
number
position
position
:
phina
.
geom
.
Vector2
press
press
:
{
[
key
:
number
]:
boolean
}
prev
Position
prevPosition
:
phina
.
geom
.
Vector2
start
Position
startPosition
:
phina
.
geom
.
Vector2
up
up
:
{
[
key
:
number
]:
boolean
}
x
x
:
number
y
y
:
number
Methods
add
Event
Listener
addEventListener
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
clear
clear
(
type
:
string
)
:
this
Parameters
type
:
string
Returns
this
clear
Event
Listener
clearEventListener
(
type
:
string
)
:
this
Parameters
type
:
string
Returns
this
clear
Key
clearKey
()
:
this
Returns
this
dispatch
Event
dispatchEvent
(
e
:
{
type
:
string
}
)
:
this
Parameters
e
:
{
type
:
string
}
Returns
this
dispatch
Event
By
Type
dispatchEventByType
(
type
:
string
,
param
:
object
)
:
this
Parameters
type
:
string
param
:
object
Returns
this
fire
fire
(
e
:
{
type
:
string
}
)
:
this
Parameters
e
:
{
type
:
string
}
Returns
this
flare
flare
(
type
:
string
,
param
?:
object
)
:
this
Parameters
type
:
string
Optional
param
:
object
Returns
this
get
Key
getKey
(
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
,
)
:
boolean
Parameters
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
Returns
boolean
get
Key
Angle
getKeyAngle
()
:
[
boolean
,
boolean
,
boolean
,
boolean
]
Returns
[
boolean
,
boolean
,
boolean
,
boolean
]
get
Key
Direction
getKeyDirection
()
:
phina
.
geom
.
Vector2
Returns
phina
.
geom
.
Vector2
get
Key
Down
getKeyDown
(
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
,
)
:
boolean
Parameters
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
Returns
boolean
get
Key
Up
getKeyUp
(
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
,
)
:
boolean
Parameters
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
Returns
boolean
has
has
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
has
Event
Listener
hasEventListener
(
type
:
string
)
:
boolean
Parameters
type
:
string
Returns
boolean
off
off
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
on
on
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
one
one
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
remove
Event
Listener
removeEventListener
(
type
:
string
,
listener
:
Function
)
:
this
Parameters
type
:
string
listener
:
Function
Returns
this
set
Key
setKey
(
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
,
flag
:
boolean
,
)
:
this
Parameters
key
:
|
number
|
"shift"
|
"Q"
|
"add"
|
"pause"
|
"end"
|
"left"
|
"d"
|
"r"
|
"right"
|
"x"
|
"y"
|
"multiply"
|
"a"
|
"b"
|
"i"
|
"p"
|
"q"
|
"s"
|
"u"
|
"g"
|
"home"
|
"forward"
|
"enter"
|
"up"
|
"backspace"
|
"tab"
|
"return"
|
"ctrl"
|
"alt"
|
"capslock"
|
"escape"
|
"pageup"
|
"pagedown"
|
"down"
|
"insert"
|
"delete"
|
"0"
|
"1"
|
"2"
|
"3"
|
"4"
|
"5"
|
"6"
|
"7"
|
"8"
|
"9"
|
"A"
|
"B"
|
"c"
|
"C"
|
"D"
|
"e"
|
"E"
|
"f"
|
"F"
|
"G"
|
"h"
|
"H"
|
"I"
|
"j"
|
"J"
|
"k"
|
"K"
|
"l"
|
"L"
|
"m"
|
"M"
|
"n"
|
"N"
|
"o"
|
"O"
|
"P"
|
"R"
|
"S"
|
"t"
|
"T"
|
"U"
|
"v"
|
"V"
|
"w"
|
"W"
|
"X"
|
"Y"
|
"z"
|
"Z"
|
"numpad0"
|
"numpad1"
|
"numpad2"
|
"numpad3"
|
"numpad4"
|
"numpad5"
|
"numpad6"
|
"numpad7"
|
"numpad8"
|
"numpad9"
|
"subtract"
|
"decimalpoint"
|
"divide"
|
"f1"
|
"f2"
|
"f3"
|
"f4"
|
"f5"
|
"f6"
|
"f7"
|
"f8"
|
"f9"
|
"f10"
|
"f11"
|
"f12"
|
"numlock"
|
"scrolllock"
|
"semicolon"
|
"equalsign"
|
"comma"
|
"dash"
|
"period"
|
"/"
|
"grave accent"
|
"open bracket"
|
"back slash"
|
"close bracket"
|
"single quote"
|
"space"
flag
:
boolean
Returns
this
update
update
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
cache
Positions
delta
Position
down
dx
dy
flags
flick
Velocity
fx
fy
key
last
max
Cache
Num
max
Distance
min
Distance
position
press
prev
Position
start
Position
up
x
y
Methods
add
Event
Listener
clear
clear
Event
Listener
clear
Key
dispatch
Event
dispatch
Event
By
Type
fire
flare
get
Key
get
Key
Angle
get
Key
Direction
get
Key
Down
get
Key
Up
has
has
Event
Listener
off
on
one
remove
Event
Listener
set
Key
update
phina.js.d.ts
Loading...