| Summary: | [PATCH] port testjoystick to the SDL 2 API | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Ondra Hošek <ondra.hosek> |
| Component: | joystick | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | minor | ||
| Priority: | P2 | CC: | icculus |
| Version: | HG 2.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: |
patch porting testjoystick to SDL 2
patch porting testjoystick to SDL 2 and drawing hat status patch porting testjoystick to SDL 2 (renderer API) and drawing hat status |
||
Created attachment 926 [details]
patch porting testjoystick to SDL 2 and drawing hat status
New version of the patch attached, adds support for drawing the status of hats.
Created attachment 927 [details]
patch porting testjoystick to SDL 2 (renderer API) and drawing hat status
New version! Since the window-surface stuff is more or less obsolete, I have updated the patch to use the Renderer API instead.
Your patch is now hg changeset efdf44f20799. I cleaned up some things and added color in c294faf5fce5. Thanks! --ryan. |
Created attachment 925 [details] patch porting testjoystick to SDL 2 Attached is a patch to port testjoystick to the SDL 2 API. The following changes have been made: * Port from SetVideoMode to window management functions. * Use SDL_MapRGB to ensure surface format independence. * Make the "draw" variable per-axis. Fixes trails for e.g. the Logitech Rumblepad.