fix generic keyboard

Conflicts:
	src/driver/rcinput.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-11-03 19:56:24 +01:00
committed by Thilo Graf
parent 555f1858e8
commit 1b39396e87

View File

@@ -204,6 +204,7 @@ void CRCInput::open(bool recheck)
return;
}
#if !HAVE_GENERIC_HARDWARE
while ((dentry = readdir(dir)) != NULL)
{
id.path = "/dev/input/" + std::string(dentry->d_name);
@@ -244,6 +245,7 @@ void CRCInput::open(bool recheck)
indev.push_back(id);
}
closedir(dir);
#endif
id.path = "/tmp/neutrino.input";
if (! checkpath(id)) {
id.fd = ::open(id.path.c_str(), O_RDWR|O_NONBLOCK|O_CLOEXEC);