Small World Engine API Reference - v0.46.1
Preparing search index...
InputInterface
Interface InputInterface
Interface for Input management to allow mocking and dependency injection.
interface
InputInterface
{
isPointerLocked
:
boolean
;
mouse
:
MouseState
;
getAxis
(
neg
:
string
,
pos
:
string
)
:
number
;
isPressed
(
code
:
string
)
:
boolean
;
}
Implemented by
Input
Index
Properties
is
Pointer
Locked
mouse
Methods
get
Axis
is
Pressed
Properties
is
Pointer
Locked
isPointerLocked
:
boolean
mouse
mouse
:
MouseState
Methods
get
Axis
getAxis
(
neg
:
string
,
pos
:
string
)
:
number
Parameters
neg
:
string
pos
:
string
Returns
number
is
Pressed
isPressed
(
code
:
string
)
:
boolean
Parameters
code
:
string
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
is
Pointer
Locked
mouse
Methods
get
Axis
is
Pressed
Small World Engine API Reference - v0.46.1
Loading...
Interface for Input management to allow mocking and dependency injection.