In case it's helpful, here's how I use hammerspoon:
* As a replacement for the classic caffeine app. [1]
* To provide shortcuts for window managements. [2]
* To shutdown bluetooth on sleep. Otherwise, devices I have setup to pair with both my mac and phone will tend to pair with the mac, even though it's asleep. [3]
I have a Kensington trackball and scrolling works fine with provided drivers or even without them. Just curious about hammerspoon was needed in your case.
i’m not OP, but some older design trackballs still being sold don’t have scroll. Also, some newer designs have poor scrolling due to physical scroll ring not being smooth, or the touch scrolling being jittery. But, yes i would like to hear what his hammerspoon solution is too.