InputManager

Summary

Methods

Method Returns
GetLevel(concept: InputConceptIdentifiers) float
IsDown(concept: InputConceptIdentifiers) bool
WentDown(concept: InputConceptIdentifiers) bool
WentUp(concept: InputConceptIdentifiers) bool
IsKeyDown(key: InputDeviceKeys) bool
WentKeyDown(key: InputDeviceKeys) bool
WentKeyUp(key: InputDeviceKeys) bool
IsMouseButtonDown(button: InputDeviceMouseButtons) bool
WentMouseButtonDown(button: InputDeviceMouseButtons) bool
WentMouseButtonUp(button: InputDeviceMouseButtons) bool
GetMouseLevel(axes: InputDeviceAxes) float
GetCursorPosition() Vec2
SetCursorPosition(x: int, y: int) void
IsMouseActive() bool
GetMouseSensitivity() float
SetMouseSensitivity(sensitivity: float) void

Methods

GetLevel

GetLevel(concept: InputConceptIdentifiers): float

Parameters

Name Type Description
concept InputConceptIdentifiers

Returns

Type Description
float

IsDown

IsDown(concept: InputConceptIdentifiers): bool

Parameters

Name Type Description
concept InputConceptIdentifiers

Returns

Type Description
bool

WentDown

WentDown(concept: InputConceptIdentifiers): bool

Parameters

Name Type Description
concept InputConceptIdentifiers

Returns

Type Description
bool

WentUp

WentUp(concept: InputConceptIdentifiers): bool

Parameters

Name Type Description
concept InputConceptIdentifiers

Returns

Type Description
bool

IsKeyDown

IsKeyDown(key: InputDeviceKeys): bool

Parameters

Name Type Description
key InputDeviceKeys

Returns

Type Description
bool

WentKeyDown

WentKeyDown(key: InputDeviceKeys): bool

Parameters

Name Type Description
key InputDeviceKeys

Returns

Type Description
bool

WentKeyUp

WentKeyUp(key: InputDeviceKeys): bool

Parameters

Name Type Description
key InputDeviceKeys

Returns

Type Description
bool

IsMouseButtonDown

IsMouseButtonDown(button: InputDeviceMouseButtons): bool

Parameters

Name Type Description
button InputDeviceMouseButtons

Returns

Type Description
bool

WentMouseButtonDown

WentMouseButtonDown(button: InputDeviceMouseButtons): bool

Parameters

Name Type Description
button InputDeviceMouseButtons

Returns

Type Description
bool

WentMouseButtonUp

WentMouseButtonUp(button: InputDeviceMouseButtons): bool

Parameters

Name Type Description
button InputDeviceMouseButtons

Returns

Type Description
bool

GetMouseLevel

GetMouseLevel(axes: InputDeviceAxes): float

Parameters

Name Type Description
axes InputDeviceAxes

Returns

Type Description
float

GetCursorPosition

GetCursorPosition(): Vec2

Returns

Type Description
Vec2

SetCursorPosition

SetCursorPosition(x: int, y: int)

Parameters

Name Type Description
x int
y int

IsMouseActive

IsMouseActive(): bool

Returns

Type Description
bool

GetMouseSensitivity

GetMouseSensitivity(): float

Returns

Type Description
float

SetMouseSensitivity

SetMouseSensitivity(sensitivity: float)

Parameters

Name Type Description
sensitivity float
Last modified April 27, 2020: Regenerate all API documentation (0b49d6be)