s-leroux / hid_mapper Goto Github PK
View Code? Open in Web Editor NEWLinux daemon to map HID events to key events
License: GNU General Public License v3.0
Linux daemon to map HID events to key events
License: GNU General Public License v3.0
Compilation error:
alex@genty:/tmp/hid_mapper$ make
g++ -c -Iinclude -fPIC main.cpp
gcc -c -g -O2 -Iinclude -fPIC uinput_device.c
gcc -c -g -O2 -Iinclude -fPIC hid.c
In file included from hid.c:21:0:
include/log.h:36:6: warning: conflicting types for built-in function 'log'
void log(LogLevel severity, const char* fmt, va_list args);
^
hid.c: In function 'read_hid_event':
hid.c:232:2: error: unknown type name 'fd_set'
fd_set rfds;
^
Makefile:48: recipe for target 'hid.o' failed
make: *** [hid.o] Error 1
Adding #include <sys/select.h>
in hid.c seems to fix it.
The code has a bug in `lookup_hid_product' when there are other hidraw devices in the system that have longer names than the device we are looking for. Around hid.c:92 the line:
buf[re] = '\0';
should be
symlink_filename[re] = '\0';
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.