summaryrefslogtreecommitdiff
path: root/devel/clanlib-devel/files/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'devel/clanlib-devel/files/patch-ac')
-rw-r--r--devel/clanlib-devel/files/patch-ac97
1 files changed, 0 insertions, 97 deletions
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 <API/Core/Input/inputbutton.h>
- #include <Core/Input/X11/joystick_linux.h>
-
--#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