Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 3563704a12558b181148510adde6c9a25fda73b6 @olivopaolo committed Apr 28, 2011
Showing with 1,136 additions and 0 deletions.
  1. +674 −0 COPYING
  2. +38 −0 Makefile
  3. +4 −0 README
  4. +48 −0 doc/index.html
  5. +93 −0 doc/style.css
  6. +279 −0 mtdev2tuio.c
674 COPYING
Oops, something went wrong.
@@ -0,0 +1,38 @@
+# Executable files
+TARGET = mtdev2tuio
+
+CPPFLAGS = -O3
+
+# compiler
+CC = gcc
+# linker
+LD = gcc
+
+# include directories
+INCLUDES =
+# e.g. -I/usr/include
+
+# libraries
+LIBS = -lmtdev -llo
+
+LIBDIRS =
+LDFLAGS =
+
+# Sources
+SRCS = mtdev2tuio.c
+
+# Object file to be produced. Sources but with .o extension
+OBJS=${SRCS:.c=.o}
+
+# Link rule
+$(TARGET): $(OBJS)
+ $(LD) $(LDFLAGS) $(OBJS) -o $@ $(LIBDIRS) $(LIBS)
+
+# Compilation rule
+%.o:%.c
+ $(CC) $(CPPFLAGS) $(INCLUDES) -c $<
+
+.PHONY: clean
+clean:
+ rm -f $(OBJS) $(TARGET)
+
4 README
@@ -0,0 +1,4 @@
+mtdev2tuio is a simple application for converting touch events
+captured from the Ubuntu mtdev library to the standart TUIO 1.1 protocol.
+
+For compile and run instructions, see doc/index.html.
@@ -0,0 +1,48 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <link rel="stylesheet" type="text/css" href="style.css">
+ <title>mtdev2tuio</title>
+</style>
+</head>
+
+<body>
+
+<div class="title">mtdev2tuio</div>
+
+<p>mtdev2tuio is a simple application for converting touch events captured from the mtdev library to the <a href="http://www.tuio.org/?specification">TUIO 1.1 protocol</a>.</p>
+
+<p>Authors: <a href="mailto:paoloolivo@inria.fr"> Paolo Olivo</a> (based on <a href="http://repo.or.cz/w/mtdev2tuio.git">mtdev2tuio</a>)</p>
+
+<!-- -------------------------------------------------------------- -->
+<h1>Compiling</h1>
+
+<p>Compiling the application requires the <a href="http://bitmath.org/code/mtdev/">mtdev library</a>, and the library <a href="http://liblo.sourceforge.net/">liblo</a>, for sending OSC packets. </p>
+<p>To compile the tIO demo applications, type:</p>
+<pre>
+&gt; make
+</pre>
+
+<!-- -------------------------------------------------------------- -->
+<h1>Running the application</h1>
+
+<p>To run the application, type:</p>
+<pre>
+&gt; sudo ./mtdev2tuio [options] &lt;device&gt; [osc.udp://&lt;address&gt;:&lt;port&gt;]
+</pre>
+
+<p>To discover the avalaible devices type the following:</p>
+<pre>
+&gt; sudo apt-get install input-utils
+
+...
+
+&gt; sudo lsinput
+</pre>
+
+<p>(e.g. the device must be specified like /dev/input/event5 )</p>
+
+<div class="footer">Copyright © Paolo Olivo, <a href="../COPYING">GNU GPL v3</a></div>
+
+</body>
+</html>
@@ -0,0 +1,93 @@
+body {
+ color: black;
+ background: white;
+ font-family: Verdana, Arial, Helvetica, sans;
+ font-size: 11px;
+ margin: 40px;
+}
+
+div.title {
+ font-weight: bold;
+ font-style: italic;
+ font-size: 12px;
+ margin: 0px 0px 0px 0px;
+ padding: 0px 0px 5px 0px;
+ border-color: #000000;
+ border-style: solid;
+ border-width: 0px 0px 1px 0px;
+ text-align: right;
+}
+
+div.footer {
+ font-style: italic;
+ font-size: 9px;
+ margin: 20px 0px 0px 0px;
+ padding: 0px 0px 0px 0px;
+ color: #CCCCCC;
+ border-color: #CCCCCC;
+ border-style: solid;
+ border-width: 1px 0px 0px 0px;
+}
+
+div.footer a {
+ color: #CCCCCC;
+}
+
+h1 {
+ font-weight: bold;
+ margin: 20px 0px 18px 0px;
+ font-size: 12px;
+}
+
+h2 {
+ font-weight: normal;
+ font-style: italic;
+ margin: 20px 0px 18px 0px;
+ font-size: 11px;
+}
+
+p {
+ margin: 18px 0px 18px 10px;
+}
+
+dt {
+ margin: 0px 0px 0px 10px;
+}
+
+dd {
+ padding-top: 10;
+ padding-bottom: 10;
+}
+
+hr {
+ border-color: #CCCCCC;
+ border-style: solid;
+ border-width: 0px 0px 1px 0px;
+ margin: 20px 40px 20px 40px;
+}
+
+span.fixme {
+ color: #FF0000;
+}
+
+pre {
+ color: #006600;
+ margin: 10px 0px 5px 40px;
+ font-family: monospace;
+ width: 75%;
+ /*font-size: 10px;*/
+ padding: 5px;
+ background: #F5F5F5;
+ border: 1px solid #DDDDDD;
+ overflow: auto;
+}
+
+code {
+ color: #006600;
+ font-family: monospace;
+ /*font-size: 10px;*/
+}
+
+table tr td {
+ font-size: 11px;
+}
Oops, something went wrong.

0 comments on commit 3563704

Please sign in to comment.