Add horizonal scroll wheel support to Mouse
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
Research direction
Start with the Mouse::State and ResetScrollWheelValue declarations described in the issue, then trace the Win32, UWP, and GameInput integrations. Support separate horizontal and vertical values, handle WM_MOUSEHWHEEL on Win32, and ensure the reset method can reset either axis.
Written by the indexing model from the issue text.
Description
The original XNA Game Studio Mouse abstraction only exposed the vertical scroll wheel as most mice don't have the horizonal scroll wheel. The information, however, is exposed for Win32, UWP, and GameInput.
This work would likely modify Mouse::State to have 2 scroll wheel values:
struct State
{
...
int scrollWheelValueX;
int scrollWheelValueY;
...
};
This would be a minor breaking change.
And the reset method would be updated to:
// Resets the accumulated scroll wheel value
void __cdecl ResetScrollWheelValue(bool x=true, bool y=true) noexcept;
The Win32 integration would also require getting WM_MOUSEHWHEEL messages.
- Dominant language
- C++
- Stars
- 2.9k
- Forks
- 538
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 5
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/DirectXTK
-
Question about mesh bounding box center discrepancy for powerplant model in ModelLoadSDKMESH.cpp Openquestion
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Project feedback Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
documentation
-
math proposal
Difficulty 5/5 Over a week Newbie friendliness 25/100
All issues in microsoft/DirectXTK
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·