| Summary: | Android, some issue with InputDevice checks | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sylvain <sylvain.becker> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | don't know | ||
| Hardware: | All | ||
| OS: | Android (All) | ||
| Attachments: | patch | ||
|
Description
Sylvain
2017-11-13 20:41:50 UTC
In https://hg.libsdl.org/SDL/rev/24bbe1496ef7 Part 4 "add name for Touch devices and simplification" is added, But not > Moreover, when you do: > if ((device != null) && ((device.getSources() & sources) != 0)) { > you allow anything of the same class as SOURCE_TOUCHSCREEN (which is > SOURCE_CLASS_POINTER). > So you allow : SOURCE_MOUSE, SOURCE_STYLUS. > For instance, an USB Mouse device get added as SDL_Touch device, which is wrong. > (But maybe a SOURCE_STYLUS should be added ?) The part 1 is in: https://hg.libsdl.org/SDL/rev/8ca43abe9870 |