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

ABSOLUTE stickmode moving the mouse pointer #27

Open
Poldovico opened this issue Jun 18, 2022 · 2 comments
Open

ABSOLUTE stickmode moving the mouse pointer #27

Poldovico opened this issue Jun 18, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Poldovico
Copy link

I realize the readme says that mode turns the stick into a mouse, but the ecraven version doesn't do that and in both versions it's the only way to use it as an analog stick.
Is that intentional? Should there be a mode that doesn't do it?

@Poldovico
Copy link
Author

I figured out why: X11 determines whether a device is a mouse by checking if it sets the key bits for mouse buttons, which you do in g13_device.cpp:

// Mouse buttons
for (int i = BTN_LEFT; i <= BTN_TASK; i++) {
    ioctl(ufile, UI_SET_KEYBIT, i);
}

Just removing the loop reverted the behaviour, but also made it impossible to bind mouse button actions to the G13, which in fairness wasn't possible with ecraven's version either.

@khampf
Copy link
Owner

khampf commented Jun 19, 2022

We can probably come up with something that works better. At the moment I can not find the time but one day I might.

@khampf khampf added the bug Something isn't working label Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants