Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
olivopaolo committed Apr 28, 2011
0 parents commit 3563704
Show file tree
Hide file tree
Showing 6 changed files with 1,136 additions and 0 deletions.
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions Makefile
@@ -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 changes: 4 additions & 0 deletions 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.
48 changes: 48 additions & 0 deletions 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>
93 changes: 93 additions & 0 deletions doc/style.css
@@ -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;
}

0 comments on commit 3563704

Please sign in to comment.