Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3563704
Showing
6 changed files
with
1,136 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> | ||
> make | ||
</pre> | ||
|
||
<!-- -------------------------------------------------------------- --> | ||
<h1>Running the application</h1> | ||
|
||
<p>To run the application, type:</p> | ||
<pre> | ||
> sudo ./mtdev2tuio [options] <device> [osc.udp://<address>:<port>] | ||
</pre> | ||
|
||
<p>To discover the avalaible devices type the following:</p> | ||
<pre> | ||
> sudo apt-get install input-utils | ||
|
||
... | ||
|
||
> 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.