diff options
author | dillo <dillo> | 2004-06-22 09:10:12 +0000 |
---|---|---|
committer | dillo <dillo> | 2004-06-22 09:10:12 +0000 |
commit | bef89a8f119e4d9c126713ff24376814977c6304 (patch) | |
tree | 8b09043fa4a19fe689ae1a0c5ea3aa6b0a26d5e9 /devel | |
parent | baa67ad475b73b021b87628930486f431b953e02 (diff) | |
download | pkgsrc-bef89a8f119e4d9c126713ff24376814977c6304.tar.gz |
fix HATs on USB joysticks that don't report up as 0.
bump PKGREVISION
Diffstat (limited to 'devel')
-rw-r--r-- | devel/SDL/Makefile | 4 | ||||
-rw-r--r-- | devel/SDL/distinfo | 4 | ||||
-rw-r--r-- | devel/SDL/patches/patch-aa | 14 |
3 files changed, 16 insertions, 6 deletions
diff --git a/devel/SDL/Makefile b/devel/SDL/Makefile index 045d1a0e3e9..735bd0bd965 100644 --- a/devel/SDL/Makefile +++ b/devel/SDL/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.55 2004/06/05 14:04:21 dillo Exp $ +# $NetBSD: Makefile,v 1.56 2004/06/22 09:10:12 dillo Exp $ # PKG_INSTALLATION_TYPES= overwrite pkgviews -PKGREVISION=1 +PKGREVISION=2 .include "Makefile.common" .include "../../mk/bsd.pkg.mk" diff --git a/devel/SDL/distinfo b/devel/SDL/distinfo index 4de1227656d..4e071405e08 100644 --- a/devel/SDL/distinfo +++ b/devel/SDL/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.28 2004/06/05 14:04:21 dillo Exp $ +$NetBSD: distinfo,v 1.29 2004/06/22 09:10:12 dillo Exp $ SHA1 (SDL-1.2.7.tar.gz) = 1a840c50668f230df9e9163ef1a282d9f3355383 Size (SDL-1.2.7.tar.gz) = 2470936 bytes -SHA1 (patch-aa) = cf5b703aa2ea4c047cfd5ea93b4687382e667b27 +SHA1 (patch-aa) = 37c1dbf04636a74b69f07c9f00bffeb0e3dcbe65 SHA1 (patch-ab) = 7effcc7f7f1856372692c147521888843810fed5 SHA1 (patch-af) = f5e824addf308f9c467de02e3b262afbc0ef77c0 SHA1 (patch-aj) = 02705ec01b70cbfef6520586d799dccd835352dc diff --git a/devel/SDL/patches/patch-aa b/devel/SDL/patches/patch-aa index ec806e30833..04b010fa6e7 100644 --- a/devel/SDL/patches/patch-aa +++ b/devel/SDL/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.6 2004/06/05 14:04:21 dillo Exp $ +$NetBSD: patch-aa,v 1.7 2004/06/22 09:10:12 dillo Exp $ --- src/joystick/bsd/SDL_sysjoystick.c.orig 2004-02-18 18:22:01.000000000 +0100 +++ src/joystick/bsd/SDL_sysjoystick.c @@ -39,7 +39,17 @@ $NetBSD: patch-aa,v 1.6 2004/06/05 14:04:21 dillo Exp $ usbend: /* The poll blocks the event thread. */ -@@ -529,9 +534,9 @@ report_alloc(struct report *r, struct re +@@ -456,7 +461,8 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy + } else if (usage == HUG_HAT_SWITCH) { + v = (Sint32)hid_get_data(REP_BUF_DATA(rep), + &hitem); +- SDL_PrivateJoystickHat(joy, 0, hatval_to_sdl(v)); ++ SDL_PrivateJoystickHat(joy, 0, ++ hatval_to_sdl(v)-hitem.logical_minimum); + } + break; + } +@@ -529,9 +535,9 @@ report_alloc(struct report *r, struct re #endif #else # ifdef USBHID_NEW |