Coder Social home page Coder Social logo

hid-replay's Introduction

THIS REPOSITORY IS OBSOLETE

Use hid-tools instead.

hid-replay's People

Contributors

andy-shev avatar bentiss avatar whot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hid-replay's Issues

Ability to replay Surface Pro 4 touchscreen HID events?

Hey @bentiss, I've seen that you've recently posted a working driver for the SP3 device. I'm about to receive an SP4 and was wondering if you had any inputs/feedback regarding developing a driver for it (disclaimer, I'm a total noob in linux driver dev), but seeing that the code is relatively small (300loc), I'm wondering:

  • Do you think your current driver could be easily ported to this new hardware?
  • What would be the proper workflow to work on it, use this lib first to debug events? Would this lib work?

Thanks a lot!

error on compiling

./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: configure.ac: creating directory config-aux
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf

autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:13: installing 'config-aux/compile'
configure.ac:12: installing 'config-aux/install-sh'
configure.ac:12: installing 'config-aux/missing'
Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am:9: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am: installing 'config-aux/depcomp'
autoreconf: Leaving directory `.'
root@MICKA:project/hid/hid-replay-master#
root@MICKA:project/hid/hid-replay-master# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking linux/uhid.h usability... yes
checking linux/uhid.h presence... yes
checking for linux/uhid.h... yes
checking for xmlto... no
checking for asciidoc... no
configure: WARNING: xmlto or asciidoc not found - cannot create man pages without it
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
root@MICKA:project/hid/hid-replay-master#
root@MICKA:project/hid/hid-replay-master#
root@MICKA:project/hid/hid-replay-master#
root@MICKA:project/hid/hid-replay-master# make
make  all-recursive
make[1]: Entering directory 'project/hid/hid-replay-master'
Making all in src
make[2]: Entering directory 'project/hid/hid-replay-master/src'
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/    -g -O2 -MT hid-recorder.o -MD -MP -MF .deps/hid-recorder.Tpo -c -o hid-recorder.o hid-recorder.c
mv -f .deps/hid-recorder.Tpo .deps/hid-recorder.Po
gcc  -g -O2   -o hid-recorder hid-recorder.o
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/    -g -O2 -MT hid-replay.o -MD -MP -MF .deps/hid-replay.Tpo -c -o hid-replay.o hid-replay.c
hid-replay.c: In function 'hid_replay_incoming_event':
hid-replay.c:147:7: error: 'UHID_GET_REPORT' undeclared (first use in this function)
  case UHID_GET_REPORT:
       ^
hid-replay.c:147:7: note: each undeclared identifier is reported only once for each function it appears in
hid-replay.c:148:18: error: 'UHID_GET_REPORT_REPLY' undeclared (first use in this function)
   w_event.type = UHID_GET_REPORT_REPLY;
                  ^
hid-replay.c:149:12: error: 'union <anonymous>' has no member named 'get_report_reply'
   w_event.u.get_report_reply.id = r_event->u.get_report.id;
            ^
hid-replay.c:149:45: error: 'union <anonymous>' has no member named 'get_report'
   w_event.u.get_report_reply.id = r_event->u.get_report.id;
                                             ^
hid-replay.c:150:12: error: 'union <anonymous>' has no member named 'get_report_reply'
   w_event.u.get_report_reply.err = -EIO;
            ^
hid-replay.c:151:12: error: 'union <anonymous>' has no member named 'get_report_reply'
   w_event.u.get_report_reply.size = 0;
            ^
hid-replay.c:154:7: error: 'UHID_SET_REPORT' undeclared (first use in this function)
  case UHID_SET_REPORT:
       ^
hid-replay.c:155:18: error: 'UHID_SET_REPORT_REPLY' undeclared (first use in this function)
   w_event.type = UHID_SET_REPORT_REPLY;
                  ^
hid-replay.c:156:12: error: 'union <anonymous>' has no member named 'set_report_reply'
   w_event.u.set_report_reply.id = r_event->u.get_report.id;
            ^
hid-replay.c:156:45: error: 'union <anonymous>' has no member named 'get_report'
   w_event.u.set_report_reply.id = r_event->u.get_report.id;
                                             ^
hid-replay.c:157:12: error: 'union <anonymous>' has no member named 'set_report_reply'
   w_event.u.set_report_reply.err = -EIO;
            ^
hid-replay.c:165:7: error: '__UHID_LEGACY_OUTPUT_EV' undeclared (first use in this function)
  case __UHID_LEGACY_OUTPUT_EV:
       ^
hid-replay.c:166:7: error: '__UHID_LEGACY_INPUT' undeclared (first use in this function)
  case __UHID_LEGACY_INPUT:
       ^
Makefile:387: recipe for target 'hid-replay.o' failed
make[2]: *** [hid-replay.o] Error 1
make[2]: Leaving directory 'project/hid/hid-replay-master/src'
Makefile:349: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 'project/hid/hid-replay-master'
Makefile:289: recipe for target 'all' failed
make: *** [all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.