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

[PATCH] port testjoystick to the SDL 2 API #638

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

[PATCH] port testjoystick to the SDL 2 API #638

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

SDLBugzilla commented Feb 10, 2021

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: Linux, x86_64

Comments on the original bug report:

On 2012-08-13 18:05:33 +0000, Ondra Hošek wrote:

Created attachment 925
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.

On 2012-08-14 09:15:41 +0000, Ondra Hošek wrote:

Created attachment 926
patch porting testjoystick to SDL 2 and drawing hat status

New version of the patch attached, adds support for drawing the status of hats.

On 2012-08-14 17:30:50 +0000, Ondra Hošek wrote:

Created attachment 927
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.

On 2012-08-15 18:02:24 +0000, Ryan C. Gordon wrote:

Your patch is now hg changeset efdf44f20799. I cleaned up some things and added color in c294faf5fce5.

Thanks!

--ryan.

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

No branches or pull requests

1 participant