Your message dated Mon, 11 Dec 2006 14:23:03 +0100
with message-id <[EMAIL PROTECTED]>
has caused the Debian Bug report #402496,
regarding It should be possible to not bind every command to a joystick button.
to be marked as having been forwarded to the upstream software
author(s) Stephen Sweeney <[EMAIL PROTECTED]>.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Hello Stephen,

As a Debian Developer I have recently adopted blobwars from the previous
package maintainer, Ondřej Surý. I got a new bugreport, it is attached
to this email. Please let me know if you intend to apply the patch from
the bug reporter and whether you'll release a new version of Blobwars
(at all).

-- 
Met vriendelijke groet / with kind regards,
      Guus Sliepen <[EMAIL PROTECTED]>
--- Begin Message ---
Package: blobwars
Version: 1.05-4
Severity: normal
Tags: patch

  The current UI requires you to choose a joystick button for every
possible command, including directional motion.  When the joystick
already has an axis, it would be nice to be able to not bind any
button at all to Left, Right, etc.  This patch allows you to press
"Delete" at the joystick configuration screen to remove a joystick
binding entirely.

  The only flaw in my scheme is that, since the interpretation of
joystick buttons is hacked up by munging the keyboard array, and
since the default keybinding of Jump is the up arrow key, the Jump
button will have the same effect as arrow-up.  Other than that,
everything should work fine (and fixing this would require deeper
fixes to the code).

  Daniel

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages blobwars depends on:
ii  libc6                       2.3.6.ds1-9  GNU C Library: Shared libraries
ii  libgcc1                     1:4.1.1-20   GCC support library
ii  libsdl-image1.2             1.2.5-2+b1   image loading library for Simple D
ii  libsdl-mixer1.2             1.2.6-1.1+b2 mixer library for Simple DirectMed
ii  libsdl-ttf2.0-0             2.0.8-3+b1   ttf library for Simple DirectMedia
ii  libsdl1.2debian             1.2.11-7     Simple DirectMedia Layer
ii  libstdc++6                  4.1.1-20     The GNU Standard C++ Library v3
ii  zlib1g                      1:1.2.3-13   compression library - runtime

blobwars recommends no packages.

-- no debconf information
diff -ru blobwars-1.05/src/CEngine.cpp /home/daniel/src/blobwars-1.05/src/CEngine.cpp
--- blobwars-1.05/src/CEngine.cpp	2006-12-10 12:21:28.000000000 -0800
+++ /home/daniel/src/blobwars-1.05/src/CEngine.cpp	2006-12-10 12:12:18.000000000 -0800
@@ -1096,6 +1096,20 @@
 		// joystick navigation is impossible.
 		lockJoy(300);
 	}
+	else if(keyState[SDLK_DELETE] || keyState[SDLK_BACKSPACE])
+	{
+		if(highlightedWidget->value == NULL)
+		{
+			debug(("%s has not been implemented!\n", highlightedWidget->name));
+		}
+		else
+		{
+			if (highlightedWidget->type == WG_JOYPAD)
+			{
+				*highlightedWidget->value = -1;
+			}
+		}
+	}
 
 	return update;
 }
diff -ru blobwars-1.05/src/widgets.cpp /home/daniel/src/blobwars-1.05/src/widgets.cpp
--- blobwars-1.05/src/widgets.cpp	2005-05-03 14:05:40.000000000 -0700
+++ /home/daniel/src/blobwars-1.05/src/widgets.cpp	2006-12-10 12:20:28.000000000 -0800
@@ -154,6 +154,10 @@
 	{
 		sprintf(text, "...");
 	}
+	else if(*widget->value == -1)
+	{
+		sprintf(text, "No Binding");
+	}
 	else
 	{
 		sprintf(text, "Button #%d", *widget->value);

--- End Message ---

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to