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

Add rawinput mouse support #27

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

InsanityBringer
Copy link
Contributor

This adds support for the raw input APIs under Windows for the mouse, removing the old DirectInput code. This code seems to work much better when breaking in the Visual Studio debugger. In addition, timing changes are made which fix the bug of held weapons like the Fusion and Mass Driver being interrupted at higher framerates.

One thing it doesn't do is sync the software cursor to the hardware one, but should the hardware cursor even be visible in windowed mode? Ideally it would be captured when a UI window is up, but invisible when playing the game, but that can be left for the future.

@kevinbentley kevinbentley merged commit 3bc8b7e into DescentDevelopers:main Apr 17, 2024
3 checks passed
@InsanityBringer InsanityBringer deleted the rawinput branch April 18, 2024 22:17
JeodC pushed a commit that referenced this pull request Apr 28, 2024
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

Successfully merging this pull request may close these issues.

2 participants