Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pygame spams controller input requests to the command line output #3

Open
skoam opened this issue Feb 12, 2015 · 1 comment
Open

Pygame spams controller input requests to the command line output #3

skoam opened this issue Feb 12, 2015 · 1 comment

Comments

@skoam
Copy link
Owner

skoam commented Feb 12, 2015

Someone left printf() statements in the official pygame 1.9.1 build making proper debugging via console logging difficult. Either building pygame from the source or waiting for a new version to be released will solve this.

SDL_JoystickGetButton value:0:
SDL_JoystickGetButton value:0:
SDL_JoystickGetButton value:0:
SDL_JoystickGetButton value:0:
SDL_JoystickGetButton value:0:
SDL_JoystickGetButton value:0:
SDL_JoystickGetButton value:0:
SDL_JoystickGetButton value:0:
SDL_JoystickGetButton value:0:
SDL_JoystickGetButton value:0:
SDL_JoystickGetButton value:0:

@skoam
Copy link
Owner Author

skoam commented Feb 13, 2015

Building pygame from the source temporarily fixed this issue. Pygame 1.9.2 will probably not contain this issue, but here is a temporary fix:

fedora dependencies (requires rpmfusion free)

yum install python-devel SDL_image-devel SDL_mixer-devel SDL_ttf-devel SDL-devel smpeg-devel numpy subversion portmidi-devel libv4l-devel

(smpeg seems to fail but pygame can be compiled without)

ubuntu dependencies

sudo apt-get install libv4l-dev mercurial python-dev python-numpy ffmpeg libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev

possibly needed

sudo ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h

Download pygame source

wget http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz
tar xvfz pygame-1.9.1release.tar.gz
cd pygame-1.9.1release

Patch joystick.c

cp src/joystick.c src/joystick.c-orig
grep -v printf src/joystick.c-orig > src/joystick.c

install pygame

python setup.py build
sudo python setup.py install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant