| Summary: | Mouse events broken | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Will <willeom> |
| Component: | events | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | 2.0.0 | ||
| Hardware: | x86 | ||
| OS: | Windows (All) | ||
|
Description
Will
2009-01-02 19:27:17 UTC
Looks like the mouse wheel event also does not report which window.
More importantly the direction of the scroll wheel is always positive.
This is a trivial fix.
replace the following in "SDL_win32events.c":
if (raw->data.mouse.usButtonData != 0) {
SDL_SendMouseWheel(index, 0,
raw->data.mouse.usButtonData);
}
with:
if (raw->data.mouse.usButtonData != 0) {
SDL_SendMouseWheel(index, 0,
(short)raw->data.mouse.usButtonData);
}
Fixed, thanks! Committed revision 4329. |