Lib: g_mouse - levantocode/otcv8reference-materials GitHub Wiki

Lib g_mouse Functions

Summary

  1. Binding / Unbinding Presses
  2. Checking Mouse States
  3. Pop/Push Cursor Type
  4. Load New Cursor Style

Binding / Unbinding Presses

g_mouse.bindPress(widget, callback)

g_mouse.bindPressMove(widget, callback)

g_mouse.bindAutoPress(widget, callback, delay, button)


Checking Mouse States

g_mouse.isPressed(mouseButton)

g_mouse.isCursorChanged()


Pop/Push Cursor Type

g_mouse.popCursor(cursorType) g_mouse.pushCursor(cursorType)


Load New Cursor Style

g_mouse.loadCursors(cursorsFilePath)