Search
Preparing search index...
The search index is not available
Craters - v0.1.2
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Craters - v0.1.2
Input
Class Input
Hierarchy
Input
Index
Constructors
constructor
Properties
bindings
pointer
Position
pressed
KEY
Methods
bind
bind
Keys
bind
Mouse
bind
Touch
handle
Mouse
handle
Touch
is
Pressed
keydown
keyup
mousedown
mousemove
mouseup
touchend
touchmove
touchstart
unbind
Keys
update
Touch
Position
Constructors
constructor
new
Input
(
)
:
Input
Returns
Input
Properties
Private
bindings
bindings
:
Map
<
string
,
string
>
= ...
pointer
Position
pointer
Position
:
{
x
:
number
;
y
:
number
}
= ...
Type declaration
x
:
number
y
:
number
Private
pressed
pressed
:
Map
<
string
,
number
>
= ...
Static
KEY
KEY
:
{}
= ...
Type declaration
[
key:
string
]:
string
Methods
bind
bind
(
key
:
string
, action
:
string
)
:
void
Parameters
key:
string
action:
string
Returns
void
bind
Keys
bind
Keys
(
)
:
void
Returns
void
Private
bind
Mouse
bind
Mouse
(
)
:
void
Returns
void
Private
bind
Touch
bind
Touch
(
)
:
void
Returns
void
Private
handle
Mouse
handle
Mouse
(
event
:
MouseEvent
, state
:
number
)
:
void
Parameters
event:
MouseEvent
state:
number
Returns
void
Private
handle
Touch
handle
Touch
(
state
:
number
)
:
void
Parameters
state:
number
Returns
void
is
Pressed
is
Pressed
(
action
:
string
)
:
number
Parameters
action:
string
Returns
number
Private
keydown
keydown
(
event
:
KeyboardEvent
)
:
void
Parameters
event:
KeyboardEvent
Returns
void
Private
keyup
keyup
(
event
:
KeyboardEvent
)
:
void
Parameters
event:
KeyboardEvent
Returns
void
Private
mousedown
mousedown
(
event
:
MouseEvent
)
:
void
Parameters
event:
MouseEvent
Returns
void
Private
mousemove
mousemove
(
event
:
MouseEvent
)
:
void
Parameters
event:
MouseEvent
Returns
void
Private
mouseup
mouseup
(
event
:
MouseEvent
)
:
void
Parameters
event:
MouseEvent
Returns
void
Private
touchend
touchend
(
event
:
TouchEvent
)
:
void
Parameters
event:
TouchEvent
Returns
void
Private
touchmove
touchmove
(
event
:
TouchEvent
)
:
void
Parameters
event:
TouchEvent
Returns
void
Private
touchstart
touchstart
(
event
:
TouchEvent
)
:
void
Parameters
event:
TouchEvent
Returns
void
unbind
Keys
unbind
Keys
(
)
:
void
Returns
void
Private
update
Touch
Position
update
Touch
Position
(
touch
:
Touch
)
:
void
Parameters
touch:
Touch
Returns
void
Exports
Entity
Component
System
Quad
Tree
SAT
Input
constructor
bindings
pointer
Position
pressed
KEY
bind
bind
Keys
bind
Mouse
bind
Touch
handle
Mouse
handle
Touch
is
Pressed
keydown
keyup
mousedown
mousemove
mouseup
touchend
touchmove
touchstart
unbind
Keys
update
Touch
Position