Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The information of the touchpad cannot accurately obtain the number of fingers #3683

Open
Autumn-one opened this issue Sep 5, 2024 · 0 comments

Comments

@Autumn-one
Copy link

I wrote the following code. Then, during the test, I found that when one finger was placed at the bottom of the touchpad and remained stationary, and another finger moved on the touchpad, the resulting touchpad information could only obtain the information of one finger

touchpadWatcher = hs.eventtap.new({hs.eventtap.event.types.gesture}, function(event)
    local touches = event:getTouches()
    local touchCount = #touches

    print("finger number: " .. touchCount)

    for i, touch in ipairs(touches) do
        print(string.format("finger %d: x = %f, y = %f", i, touch.normalizedPosition.x, touch.normalizedPosition.y))
    end
end)

touchpadWatcher:start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant