From d615f4ca564f838b39bd8b504a3107011d951a03 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Fri, 17 Nov 2000 12:19:22 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'RELEASE_4_2_0'. --- devel/clanlib-devel/files/patch-ac | 97 -------------------------------------- 1 file changed, 97 deletions(-) delete mode 100644 devel/clanlib-devel/files/patch-ac (limited to 'devel/clanlib-devel/files/patch-ac') diff --git a/devel/clanlib-devel/files/patch-ac b/devel/clanlib-devel/files/patch-ac deleted file mode 100644 index f07d49659630..000000000000 --- a/devel/clanlib-devel/files/patch-ac +++ /dev/null @@ -1,97 +0,0 @@ ---- Sources/Core/Input/X11/joystick_linux.cpp.orig Wed May 10 15:54:52 2000 -+++ Sources/Core/Input/X11/joystick_linux.cpp Wed May 10 15:56:52 2000 -@@ -24,33 +24,33 @@ - #include - #include - --#include "joystick_linux.h" -+/*#include "joystick_linux.h"*/ - --#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,0) -+#if 1 - - CL_LinuxJoystick::CL_LinuxJoystick() - { -- fd = -1; -+/* fd = -1; - num_buttons = 0; - num_axes = 0; - axes = NULL; -- buttons = NULL; -+ buttons = NULL;*/ - } - - CL_LinuxJoystick::~CL_LinuxJoystick() - { -- if (fd != -1) -+/* if (fd != -1) - { - close(fd); - } - - delete[] axes; -- delete[] buttons; -+ delete[] buttons;*/ - } - - bool CL_LinuxJoystick::init(int number) - { -- cl_assert(fd == -1); // do not call init twice! -+/* cl_assert(fd == -1); // do not call init twice! - - char devname[10]; - sprintf( devname, "/dev/js%d", number ); -@@ -58,20 +58,20 @@ - if (fd == -1) return false; // no joystick available - - ioctl( fd, JSIOCGBUTTONS, &num_buttons ); -- ioctl( fd, JSIOCGAXES, &num_axes ); -+ ioctl( fd, JSIOCGAXES, &num_axes );*/ - /* - cout << "Number of axes: " << num_axes << endl; - cout << "Number of buttons: " << num_buttons << endl; - */ -- axes = new CL_LinuxJoystick_Axis[num_axes]; -- buttons = new CL_LinuxJoystick_Button[num_buttons]; -+/* axes = new CL_LinuxJoystick_Axis[num_axes]; -+ buttons = new CL_LinuxJoystick_Button[num_buttons];*/ - - return true; - } - - void CL_LinuxJoystick::keep_alive() - { -- cl_assert(fd != -1); // init _MUST_ be called before update! -+/* cl_assert(fd != -1); // init _MUST_ be called before update! - - while (read( fd, &jev, sizeof(js_event) ) != -1) - { -@@ -85,23 +85,23 @@ - buttons[jev.number].set_value(jev.value); - break; - } -- } -+ }*/ - } - - CL_InputAxis *CL_LinuxJoystick::get_axis(int num) - { -- cl_assert(num >= 0); // disallow negative values -+/* cl_assert(num >= 0); // disallow negative values - - if (num >= num_axes) return NULL; -- return &axes[num]; -+ return &axes[num];*/ - } - - CL_InputButton *CL_LinuxJoystick::get_button(int num) - { -- cl_assert(num >= 0); // disallow negative values -+/* cl_assert(num >= 0); // disallow negative values - - if (num >= num_buttons) return NULL; -- return &buttons[num]; -+ return &buttons[num];*/ - } - - #endif -- cgit v1.2.3