Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd raw mouse events and format #699
Conversation
torkleyy
removed
the
pri: normal
label
May 8, 2018
jojolepro
approved these changes
May 8, 2018
Thanks!
Kind of hard to read with the formatting changes... rustfmt-preview version?
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
0.3.8-nightly (346238f4 2018-02-04) |
MrMinimal
approved these changes
May 8, 2018
•
Looks good, works as expected!
I'll update the fly_camera demo accordingly.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Thanks @MrMinimal ! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jojolepro
May 8, 2018
Collaborator
I wonder if my graphics tablet would generate mouse moved events
|
I wonder if my graphics tablet would generate mouse moved events |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
You should try it! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
doing that right now :P |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
MrMinimal
May 8, 2018
Contributor
@jojolepro I just tried my Wacom on Linux X11 and it does produce events, but every delta is in the thousands even if I don't move. The mouse's delta is between -10 and +10.
|
@jojolepro I just tried my Wacom on Linux X11 and it does produce events, but every delta is in the thousands even if I don't move. The mouse's delta is between -10 and +10. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Xaeroxe
May 8, 2018
Member
@MrMinimal haha, that's bizarre. I hope gamers don't have these tablets plugged in while they're playing I guess
|
@MrMinimal haha, that's bizarre. I hope gamers don't have these tablets plugged in while they're playing I guess |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Rhuagh
May 8, 2018
Member
Device events will generally be quite different from device to device, it's one of the drawbacks of using the raw data. We should consider how to add scaling factors to different device types.
|
Device events will generally be quite different from device to device, it's one of the drawbacks of using the raw data. We should consider how to add scaling factors to different device types. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jojolepro
May 8, 2018
Collaborator
I assume most games would want to have adjustments for that. Something like "put your pen in the bottom left, now in the top right" and it calculates the sensitivity accordingly. I have yet to find a 3d game made for mouse players that supports tablets at all (without needing the tablet driver to have a mouse emulation mode). Usually you want to use tablets for their absolute position input anyway.
A quick fix would be to let user set a custom sensitivity of 0.001 in the game's setting files.
|
I assume most games would want to have adjustments for that. Something like "put your pen in the bottom left, now in the top right" and it calculates the sensitivity accordingly. I have yet to find a 3d game made for mouse players that supports tablets at all (without needing the tablet driver to have a mouse emulation mode). Usually you want to use tablets for their absolute position input anyway. A quick fix would be to let user set a custom sensitivity of 0.001 in the game's setting files. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
MrMinimal
May 9, 2018
Contributor
Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.
Comments from Reviewable
|
Reviewed 1 of 1 files at r2. Comments from Reviewable |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
One more review from anyone = merge |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
bors r+ |
Xaeroxe commentedMay 8, 2018
•
edited
Edited 2 times
-
Xaeroxe
edited May 8, 2018 (most recent)
-
torkleyy
edited May 8, 2018
Note to reviewers: The only part with any meaningful changes is the amethyst_input files. Everything else is formatting.
This change is