Code Monkey home page Code Monkey logo

tourbox_neo_linux_driver's Introduction

CI build badge

Tourbox Stock image

About

This is a simple Linux driver (written in C++) for the Tourbox Neo. (The manufacturer frustratingly refused to provide a Linux driver, so I decided to write one)

This driver lets you use the device as a rudimentary keyboard and mouse combo -- the D-pad controls a virtual mouse, and the various keys perform different functions (see docs folder for full list).

Usage

Compile the driver via C-Make.

$ cmake CMakeLists.txt
$ make

In a separate window, open dmesg.

Since the device will be writing to /dev/uinput, you need to either:

(a) Run the executable (Tourbox_Linux_Driver) as root, passing in the path to the serial port for your device. This is either /dev/ttyACM0 or /dev/ttyUSB0 on most distributions, check your dmesg output when you connect your device to be sure.

(b) Change the permissions on /dev/uinput

Whatever you decide to do, after running the executable you should see an entry in the dmesg window with the device:

input: Custom Tourbox TBG_H Driver (Keyboard/Mouse) as /devices/virtual/input/input48

This tells you it's ready for use. When you're ready to stop using the driver, simply Ctrl + C (SIGINT) the program

If you'd like to change the functionality provided by the driver, you can use Xmodmap to create your own keymap.

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.