👑
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
  • add_connection
  • remove_connection
  • load_string
  • new_c_closure
  • is_lua_closure
  • is_c_closure
  • get_wrapped_original
  • set_read_only
  • get_read_only
  • random_string
  • set_clipboard
  • get_clipboard
  • is_internet_connected
  1. enviornment
  2. Globals

Impulse globals

add_connection

add_connection(connection_name: string, callback: function) -> integer
Connection name
Description

new_frame

Triggered at the start of each frame, allowing functions to execute per-frame updates such as rendering or game logic.

cursor_move

shutdown

Invoked when the cursor moves, providing updated position coordinates to handle input tracking or UI interactions.

remove_connection

remove_connection(connection_reference: integer) -> nil

load_string

load_string(source_code: string) -> function

new_c_closure

new_c_closure(func: function) -> function

is_lua_closure

is_lua_closure(func: function) -> boolean

is_c_closure

is_c_closure(func: function) -> boolean

get_wrapped_original

get_wrapped_original(func: function) -> function

set_read_only

set_read_only(tbl: table) -> nil

get_read_only

get_read_only(tbl: table) -> boolean

random_string

random_string(length: integer) -> string

set_clipboard

set_clipboard(data: string) -> nil

get_clipboard

get_clipboard() -> string

is_internet_connected

is_internet_connected() -> boolean
PreviousLua globalsNextLibraries

Last updated 3 months ago

Invoked when the cursor moves, passing the new cursor position as a to the callback for handling input tracking or UI interactions.

vector2