👑
Impulse documentation
  • Getting started
  • Examples
    • Console
    • Window
  • enviornment
    • Globals
      • Lua globals
      • Impulse globals
    • Libraries
      • Win32
      • Direct X
      • Renderer
      • Input
      • Crypt
      • Memory
      • File system
      • Debug
  • Enumerations
    • Key codes
    • Cursor style
    • Primitive topology
  • Data types
    • Vector2
    • Vector3
    • Vertex
    • Color
    • Draw command
Powered by GitBook

Impulse links

  • GitHub
  • Project
  • Discord

© 2025 Impulse

On this page
  • input.is_active
  • input.is_key_pressed
  • input.is_key_held
  • input.get_cursor_position
  • input.set_cursor_position
  • input.get_cursor_style
  • input.set_cursor_style
  1. enviornment
  2. Libraries

Input

input.is_active

input.is_active() -> boolean

input.is_key_pressed

input.is_key_pressed(key_code: number) -> boolean

input.is_key_held

input.is_key_held(key_code: number) -> boolean

input.get_cursor_position

input.get_cursor_position() -> vector2

input.set_cursor_position

input.set_cursor_position(position: vector2) -> nil

input.get_cursor_style

input.get_cursor_style() -> number

input.set_cursor_style

input.set_cursor_style(style: number) -> nil
PreviousRendererNextCrypt

Last updated 3 months ago