2 * Sixth 3D engine. Author: Svjatoslav Agejenko.
3 * This project is released under Creative Commons Zero (CC0) license.
5 package eu.svjatoslav.sixth.e3d.gui.humaninput;
7 import java.io.BufferedReader;
8 import java.io.FileReader;
9 import java.io.IOException;
12 * I have Space Mouse Compact 3D Connexion mouse: https://3dconnexion.com/us/product/spacemouse-compact/
14 * I discovered that it is possible to read raw data from it by reading /dev/hidraw4 file.
16 * TODO: reverse engineer the data format and implement a driver for it.
19 public class Connexion3D {
21 public static void main(final String[] args) throws IOException {
23 final BufferedReader in = new BufferedReader(new FileReader(
27 // for testing purposes
29 System.out.print(in.read() + " ");
30 System.out.println("\n");