Module: cuteful.pointer

Useful functions for pointer stuff.

Info:

  • Copyright: 2025
  • License: GPLv3
  • Originally authored by: Dwi Asmoro Bangun
    (Full contributors list available on our github project)

Static module functions

cuteful.pointer.bind_swipe (fingers, direction, committed_cb, cancelled_cb, options) Get a screen by its relative index.


Static module functions

🔗 cuteful.pointer.bind_swipe (fingers, direction, committed_cb, cancelled_cb, options)
Get a screen by its relative index.

Parameters:

Name Type(s) Description
fingers integer Number of fingers that touch the surface.
direction enum The swipe direction.
committed_cb table Callback function when swipe is considered valid.
pointer cwc_pointer The pointer object.
cancelled_cb table Callback function when swipe is considered not swiping.
pointer cwc_pointer The pointer object.
options table
threshold integer Threshold distance from initial point that is considered a swipes.
cancel_threshold integer Threshold distance from initial point to be considered cancelled.
skip_events integer Don't send swipe gesturesevents to focused client.
generated by LDoc 1.5.0 based on AwesomeWM template