mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
fix generic keyboard
Conflicts: src/driver/rcinput.cpp Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -204,6 +204,7 @@ void CRCInput::open(bool recheck)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !HAVE_GENERIC_HARDWARE
|
||||||
while ((dentry = readdir(dir)) != NULL)
|
while ((dentry = readdir(dir)) != NULL)
|
||||||
{
|
{
|
||||||
id.path = "/dev/input/" + std::string(dentry->d_name);
|
id.path = "/dev/input/" + std::string(dentry->d_name);
|
||||||
@@ -244,6 +245,7 @@ void CRCInput::open(bool recheck)
|
|||||||
indev.push_back(id);
|
indev.push_back(id);
|
||||||
}
|
}
|
||||||
closedir(dir);
|
closedir(dir);
|
||||||
|
#endif
|
||||||
id.path = "/tmp/neutrino.input";
|
id.path = "/tmp/neutrino.input";
|
||||||
if (! checkpath(id)) {
|
if (! checkpath(id)) {
|
||||||
id.fd = ::open(id.path.c_str(), O_RDWR|O_NONBLOCK|O_CLOEXEC);
|
id.fd = ::open(id.path.c_str(), O_RDWR|O_NONBLOCK|O_CLOEXEC);
|
||||||
|
Reference in New Issue
Block a user