Module input

Consts

MOUSE_MODE_VISIBLE* = 0'i64
MOUSE_MODE_HIDDEN* = 1'i64
MOUSE_MODE_CAPTURED* = 2'i64
MOUSE_MODE_CONFINED* = 3'i64

Procs

proc isKeyPressed*(scancode: int64): bool {.
gcsafe, locks: 0
.}
proc isMouseButtonPressed*(button: int64): bool {.
gcsafe, locks: 0
.}
proc isJoyButtonPressed*(device: int64; button: int64): bool {.
gcsafe, locks: 0
.}
proc isActionPressed*(action: string): bool {.
gcsafe, locks: 0
.}
proc isActionJustPressed*(action: string): bool {.
gcsafe, locks: 0
.}
proc isActionJustReleased*(action: string): bool {.
gcsafe, locks: 0
.}
proc addJoyMapping*(mapping: string; updateExisting: bool = false) {.
gcsafe, locks: 0
.}
proc removeJoyMapping*(guid: string) {.
gcsafe, locks: 0
.}
proc isJoyKnown*(device: int64): bool {.
gcsafe, locks: 0
.}
proc getJoyAxis*(device: int64; axis: int64): float64 {.
gcsafe, locks: 0
.}
proc getJoyName*(device: int64): string {.
gcsafe, locks: 0
.}
proc getJoyGuid*(device: int64): string {.
gcsafe, locks: 0
.}
proc getConnectedJoypads*(): Array {.
gcsafe, locks: 0
.}
proc getJoyVibrationStrength*(device: int64): Vector2 {.
gcsafe, locks: 0
.}
proc getJoyVibrationDuration*(device: int64): float64 {.
gcsafe, locks: 0
.}
proc getJoyButtonString*(buttonIndex: int64): string {.
gcsafe, locks: 0
.}
proc getJoyButtonIndexFromString*(button: string): int64 {.
gcsafe, locks: 0
.}
proc getJoyAxisString*(axisIndex: int64): string {.
gcsafe, locks: 0
.}
proc getJoyAxisIndexFromString*(axis: string): int64 {.
gcsafe, locks: 0
.}
proc startJoyVibration*(device: int64; weakMagnitude: float64;
                       strongMagnitude: float64; duration: float64 = 0.0) {.
gcsafe, locks: 0
.}
proc stopJoyVibration*(device: int64) {.
gcsafe, locks: 0
.}
proc getGravity*(): Vector3 {.
gcsafe, locks: 0
.}
proc getAccelerometer*(): Vector3 {.
gcsafe, locks: 0
.}
proc getMagnetometer*(): Vector3 {.
gcsafe, locks: 0
.}
proc getGyroscope*(): Vector3 {.
gcsafe, locks: 0
.}
proc getLastMouseSpeed*(): Vector2 {.
gcsafe, locks: 0
.}
proc getMouseButtonMask*(): int64 {.
gcsafe, locks: 0
.}
proc setMouseMode*(mode: int64) {.
gcsafe, locks: 0
.}
proc getMouseMode*(): int64 {.
gcsafe, locks: 0
.}
proc warpMousePos*(to: Vector2) {.
gcsafe, locks: 0
.}
proc actionPress*(action: string) {.
gcsafe, locks: 0
.}
proc actionRelease*(action: string) {.
gcsafe, locks: 0
.}
proc setCustomMouseCursor*(image: Texture; hotspot: Vector2 = vec2(0.0, 0.0)) {.
gcsafe, locks: 0
.}
proc parseInputEvent*(event: InputEvent) {.
gcsafe, locks: 0
.}