Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
multitouch
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
multitouch
Commits
98d85613
Commit
98d85613
authored
Apr 24, 2012
by
UVA Multi-touch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed obsolete point down issue.
parent
7ac935c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
src/tuio_server.py
src/tuio_server.py
+9
-6
No files found.
src/tuio_server.py
View file @
98d85613
...
@@ -35,15 +35,18 @@ class TuioServer2D(Logger):
...
@@ -35,15 +35,18 @@ class TuioServer2D(Logger):
%
(
surface
,
tags
,
data
,
source
),
2
)
%
(
surface
,
tags
,
data
,
source
),
2
)
msg_type
=
data
[
0
]
msg_type
=
data
[
0
]
# FIXME: Ignore obj/blb events?
if
surface
!=
'cur'
:
return
if
msg_type
==
'alive'
:
if
msg_type
==
'alive'
:
alive
=
set
(
data
[
1
:])
alive
=
set
(
data
[
1
:])
released
=
self
.
alive
-
alive
released
=
self
.
alive
-
alive
self
.
alive
=
alive
self
.
alive
=
alive
self
.
down
-=
released
self
.
down
-=
released
if
released
:
if
released
:
self
.
log
(
'Released %s.'
%
', '
.
join
(
map
(
str
,
released
)),
2
)
self
.
log
(
'Released %s.'
%
', '
.
join
(
map
(
str
,
released
)))
self
.
down
-=
released
for
sid
in
released
:
for
sid
in
released
:
self
.
handler_obj
.
point_up
(
sid
)
self
.
handler_obj
.
point_up
(
sid
)
...
@@ -56,12 +59,12 @@ class TuioServer2D(Logger):
...
@@ -56,12 +59,12 @@ class TuioServer2D(Logger):
# Check if 'point_down' has already been triggered. If so, trigger
# Check if 'point_down' has already been triggered. If so, trigger
# a 'point_move' event instead
# a 'point_move' event instead
if
sid
in
self
.
down
:
if
sid
in
self
.
down
:
self
.
log
(
'Moved %d to (%s, %s).'
%
(
sid
,
x
,
y
)
,
2
)
self
.
log
(
'Moved %d to (%s, %s).'
%
(
sid
,
x
,
y
))
self
.
handler_obj
.
point_move
(
sid
,
x
,
y
)
self
.
handler_obj
.
point_move
(
sid
,
x
,
y
)
else
:
else
:
self
.
log
(
'Down %d at (%s, %s).'
%
(
sid
,
x
,
y
),
2
)
self
.
log
(
'Down %d at (%s, %s).'
%
(
sid
,
x
,
y
))
self
.
handler_obj
.
point_down
(
sid
,
x
,
y
)
self
.
down
.
add
(
sid
)
self
.
down
.
add
(
sid
)
self
.
handler_obj
.
point_down
(
sid
,
x
,
y
)
def
start
(
self
):
def
start
(
self
):
self
.
log
(
'Starting OSC server'
)
self
.
log
(
'Starting OSC server'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment