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

Horizontal scroll and additional mouse buttons #242

Closed
wants to merge 2 commits into from

Conversation

AdrianKoshka
Copy link

@AdrianKoshka AdrianKoshka commented Jan 25, 2019

Patch talked about in issue #51. Going to mention @vorph1, as I don't know whether they consider this change finished or not.

@AdrianKoshka AdrianKoshka added the enhancement New feature or request label Jan 25, 2019
@AdrianKoshka AdrianKoshka requested a review from p12tic January 25, 2019 22:52

static const ButtonID kMacButtonRight = 2;
static const ButtonID kMacButtonMiddle = 3;
//@}

static const UInt8 NumButtonIDs = 5;
// XXX -- some osx stuff uses this and might expect it to be 5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we figure out whether this the case or not and explain? For now this seems to have high regression potential.

Copy link
Member

@p12tic p12tic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think NumButtonIDs issue needs solution, otherwise looks good.

@vorph1
Copy link

vorph1 commented Jan 27, 2019

I've tested on OSX now and it doesn't work. I don't know the codebase nor the required APIs so porting @yupi2's patch is all I can contribute.

@rolandoislas
Copy link

I have tested this PR with a Debian 9 server and MacOS Mojave 10.14.2 client. The extra mouse buttons are working, but I have not tested horizontal scrolling.

@AdrianKoshka
Copy link
Author

Thanks! :D

@rolandoislas
Copy link

rolandoislas commented Jan 30, 2019

An update on Mojave testing. The original test was performed using a game (League of Legends), which does recognize the button input. However, testing with a browser produces no result for the back/forward buttons.

On Windows 10 the inverse is true. The browser back/forwards works, but the input is not recognized in a game.

Edit: I tested the behavior with a mouse physically plugged into the machine running MacOS Mojave and the behavior appears the same. Safari does not support the forward and back buttons and FireFox on MacOS brings up the scroll indicator.

@vorph1
Copy link

vorph1 commented Feb 10, 2019

NumButtonIDs being 6 shouldn't cause any issues, as for handling the button events it seems it's a client OS issue since the behavior is the same when plugging the device in directly.

@AdrianKoshka
Copy link
Author

@vorph1 You still interested in this PR?

@vorph1
Copy link

vorph1 commented Apr 12, 2019

Sure, I'd like to see this merged. Do you have any other suggestions since as @rolandoislas said the behavior seems to be the same with barrier and mouse plugged in directly?

@AdrianKoshka
Copy link
Author

Actually, looking back.

However, testing with a browser produces no result for the back/forward buttons.

On Windows 10 the inverse is true. The browser back/forwards works, but the input is not recognized in a game

Edit: I tested the behavior with a mouse physically plugged into the machine running MacOS Mojave and the behavior appears the same. Safari does not support the forward and back buttons and FireFox on MacOS brings up the scroll indicator.

I feel like if I were to merge this, people might complain about having a "half-baked" experience.

@p12tic
Copy link
Member

p12tic commented Apr 12, 2019

I'd argue that given the amount of time the development team has, we should only merge well tested code that don't introduce regressions. It's a pity we don't have unit tests which could ensure a level of quality.

@SavageCore
Copy link

Forward/Back working fine for me with SensibleSideButtons. Is this needed within this PR?

I'm looking for horizontal scroll support, can the two PRs be split?

@AdrianKoshka
Copy link
Author

AdrianKoshka commented May 31, 2019

I think I'll close this PR due to inactivity. If anyone wants me to re-open it, I'll re-open it under a new PR so it will be built against the new CI system, and just reference this closed PR in the new PR.

@EbonJaeger
Copy link

I think it would be really nice to get this in. Would it be better to use this PR, or form a new one?

@AdrianKoshka
Copy link
Author

I'd say new one, so it can be ran against the new CI.

EbonJaeger added a commit to EbonJaeger/barrier that referenced this pull request Aug 4, 2019
This re-implements the original patch from debauchee#242 on the more up to date codebase.
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

Successfully merging this pull request may close these issues.

6 participants