Module input

Consts

MOUSE_MODE_VISIBLE = 0'i64
MOUSE_MODE_HIDDEN = 1'i64
MOUSE_MODE_CAPTURED = 2'i64
MOUSE_MODE_CONFINED = 3'i64
CURSOR_ARROW = 0'i64
CURSOR_IBEAM = 1'i64
CURSOR_POINTING_HAND = 2'i64
CURSOR_CROSS = 3'i64
CURSOR_WAIT = 4'i64
CURSOR_BUSY = 5'i64
CURSOR_DRAG = 6'i64
CURSOR_CAN_DROP = 7'i64
CURSOR_FORBIDDEN = 8'i64
CURSOR_VSIZE = 9'i64
CURSOR_HSIZE = 10'i64
CURSOR_BDIAGSIZE = 11'i64
CURSOR_FDIAGSIZE = 12'i64
CURSOR_MOVE = 13'i64
CURSOR_VSPLIT = 14'i64
CURSOR_HSPLIT = 15'i64
CURSOR_HELP = 16'i64

Procs

proc isKeyPressed(scancode: int64): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isMouseButtonPressed(button: int64): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isJoyButtonPressed(device: int64; button: int64): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isActionPressed(action: string): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isActionJustPressed(action: string): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isActionJustReleased(action: string): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getActionStrength(action: string): float64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc addJoyMapping(mapping: string; updateExisting: bool = false) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc removeJoyMapping(guid: string) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc joyConnectionChanged(device: int64; connected: bool; name: string; guid: string) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc isJoyKnown(device: int64): bool {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getJoyAxis(device: int64; axis: int64): float64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getJoyName(device: int64): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getJoyGuid(device: int64): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getConnectedJoypads(): Array {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getJoyVibrationStrength(device: int64): Vector2 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getJoyVibrationDuration(device: int64): float64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getJoyButtonString(buttonIndex: int64): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getJoyButtonIndexFromString(button: string): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getJoyAxisString(axisIndex: int64): string {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getJoyAxisIndexFromString(axis: string): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc startJoyVibration(device: int64; weakMagnitude: float64;
                      strongMagnitude: float64; duration: float64 = 0.0) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc stopJoyVibration(device: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getGravity(): Vector3 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getAccelerometer(): Vector3 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getMagnetometer(): Vector3 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getGyroscope(): Vector3 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getLastMouseSpeed(): Vector2 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getMouseButtonMask(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setMouseMode(mode: int64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc getMouseMode(): int64 {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc warpMousePosition(to: Vector2) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc actionPress(action: string) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc actionRelease(action: string) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setDefaultCursorShape(shape: int64 = 0'i64) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setCustomMouseCursor(image: Resource; shape: int64 = 0'i64;
                         hotspot: Vector2 = vec2(0.0, 0.0)) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc parseInputEvent(event: InputEvent) {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}