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

[feature require] pointer->udev-device and udev->pointer. #6

Open
Z572 opened this issue Dec 22, 2023 · 2 comments
Open

[feature require] pointer->udev-device and udev->pointer. #6

Z572 opened this issue Dec 22, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Z572
Copy link
Contributor

Z572 commented Dec 22, 2023

libinput have libinput_udev_create_context and libinput_device_get_udev_device require udev and udev_device struct

If guile-udev provide udev->pointer and pointer->udev-device, i can use them at guile-libinput

@artyom-poptsov
Copy link
Owner

Hello,

please check this branch:
https://github.com/artyom-poptsov/guile-udev/tree/wip-udev-pointers

Does it look like something that you requested?

This is new for me so I want to make sure I understood the feature request correctly.

Thanks!

-- avp

@artyom-poptsov artyom-poptsov self-assigned this Dec 24, 2023
@artyom-poptsov artyom-poptsov added the enhancement New feature or request label Dec 24, 2023
@Z572
Copy link
Contributor Author

Z572 commented Dec 25, 2023

Yes this is what I need, but there are problems with this version, for example pointer->udev executing the same pointer twice should return the same udev, see define-wrapped-pointer-type. It uses make-weak-value-hash-table internally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants