diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2017-03-28 17:37:13 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2017-03-28 17:38:35 -0300 |
commit | 274ac753d419a7b04a0aa2009257b4c60950a8bb (patch) | |
tree | 52e44d4044bef656eb7a2df9c92f441785d88c0f /pcr/python-pygame/pygame-joystick.patch | |
parent | 20db042e03ecff3cf7dc8a5df71af8660d0b2a00 (diff) | |
download | abslibre-274ac753d419a7b04a0aa2009257b4c60950a8bb.tar.gz abslibre-274ac753d419a7b04a0aa2009257b4c60950a8bb.tar.bz2 abslibre-274ac753d419a7b04a0aa2009257b4c60950a8bb.zip |
remove python-pygame-hg package and add python-pygame package to [pcr]
Diffstat (limited to 'pcr/python-pygame/pygame-joystick.patch')
-rw-r--r-- | pcr/python-pygame/pygame-joystick.patch | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/pcr/python-pygame/pygame-joystick.patch b/pcr/python-pygame/pygame-joystick.patch deleted file mode 100644 index b136baa0c..000000000 --- a/pcr/python-pygame/pygame-joystick.patch +++ /dev/null @@ -1,63 +0,0 @@ -diff -Nur a/src/joystick.c b/src/joystick.c ---- a/src/joystick.c 2016-07-27 20:51:54.070634066 -0300 -+++ b/src/joystick.c 2016-07-27 20:54:56.250440937 -0300 -@@ -200,10 +200,7 @@ - return RAISE (PyExc_SDLError, "Invalid joystick axis"); - } - -- value = SDL_JoystickGetAxis (joy, axis); --#ifdef DEBUG -- /*printf("SDL_JoystickGetAxis value:%d:\n", value);*/ --#endif -+ printf("SDL_JoystickGetAxis value:%d:\n", value); - - return PyFloat_FromDouble (value / 32768.0); - } -@@ -241,10 +238,7 @@ - return RAISE (PyExc_SDLError, "Invalid joystick button"); - } - -- value = SDL_JoystickGetButton (joy, _index); --#ifdef DEBUG -- /*printf("SDL_JoystickGetButton value:%d:\n", value);*/ --#endif -+ printf("SDL_JoystickGetButton value:%d:\n", value); - return PyInt_FromLong (value); - } - -@@ -278,10 +272,7 @@ - if (!joy) { - return RAISE (PyExc_SDLError, "Joystick not initialized"); - } -- value = SDL_JoystickNumBalls (joy); --#ifdef DEBUG -- /*printf("SDL_JoystickNumBalls value:%d:\n", value);*/ --#endif -+ printf("SDL_JoystickNumBalls value:%d:\n", value); - if (_index < 0 || _index >= value) { - return RAISE (PyExc_SDLError, "Invalid joystick trackball"); - } -@@ -302,10 +293,7 @@ - return RAISE (PyExc_SDLError, "Joystick not initialized"); - } - -- value = SDL_JoystickNumHats (joy); --#ifdef DEBUG -- /*printf("SDL_JoystickNumHats value:%d:\n", value);*/ --#endif -+ printf("SDL_JoystickNumHats value:%d:\n", value); - return PyInt_FromLong (value); - } - -@@ -330,10 +318,7 @@ - } - - px = py = 0; -- value = SDL_JoystickGetHat (joy, _index); --#ifdef DEBUG -- /*printf("SDL_JoystickGetHat value:%d:\n", value);*/ --#endif -+ printf("SDL_JoystickGetHat value:%d:\n", value); - if (value & SDL_HAT_UP) { - py = 1; - } |