Formatting update
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / io / Connexion3D.java
1 /*
2  * Sixth 3D engine. Author: Svjatoslav Agejenko. 
3  * This project is released under Creative Commons Zero (CC0) license.
4  */
5 package eu.svjatoslav.sixth.e3d.io;
6
7 import java.io.BufferedReader;
8 import java.io.FileReader;
9 import java.io.IOException;
10
11 /**
12  * 3D Connexion mouse adapter.
13  * <p>
14  * Idea is to read Linux device file and interpret resulting numbers.
15  * <p>
16  * TODO: unfinished
17  */
18
19 public class Connexion3D {
20
21     public static void main(final String[] args) throws IOException {
22
23         final BufferedReader in = new BufferedReader(new FileReader(
24                 "/dev/hidraw4"));
25
26
27         while (true) {
28             System.out.print(in.read() + " ");
29             System.out.println("\n");
30         }
31
32         // in.close();
33
34     }
35 }