| Summary: | No mouse or keyboard input recognized on Raspberry Pi 2 (Raspian without X) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | TheBuzzSaw <thebuzzsaw> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | josh, thebuzzsaw |
| Version: | 2.0.4 | ||
| Hardware: | ARM | ||
| OS: | Linux | ||
| URL: | http://raspberrypi.stackexchange.com/q/40891/38009 | ||
| Attachments: | patch to fix the issue | ||
|
Description
TheBuzzSaw
2016-01-11 04:15:57 UTC
To be clear, if the program exits normally, the keyboard resumes normal operation. So, I added the `int n` to get the program to exit even if there is no input detected. (I was sick of having to reboot the Pi to fix the problem.) Make sure you have libudev development files installed. Try: sudo apt-get install libudev-dev Then, rebuild and reinstall SDL 2. Mouse/keyboard input started working for me after I did that. There appears to be an issue with the makefile or configure.ac where it searches for libudev files, doesn't find them, but still says at the end that it will use libudev. ./configure --disable-libudev does appear to make it correctly show that libudev will not be used. Regardless, it appears that you do need libudev to get mouse/keyboard input to work on the Raspberry Pi. Thank you so much. That was indeed my problem. I thought I ensured `evdev` was there at least, but I forgot. Installing `libudev` fixed it. It does seem strange that one can compile SDL without input support, but whatever. Created attachment 2367 [details]
patch to fix the issue
I'm going to reopen this because configure should still accurately report whether libudev will be used. Right now it just tests whether it's enabled as an argument, not whether configure was successful in finding it. Here's a patch that fixes the issue.
Fixed, thanks! https://hg.libsdl.org/SDL/rev/fc1c463cfdae |