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
19eeb983
Commit
19eeb983
authored
Jun 08, 2012
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup.
parent
78bfae58
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
docs/rules.mk
docs/rules.mk
+2
-3
src/trackers/__init__.py
src/trackers/__init__.py
+2
-2
src/widgets.py
src/widgets.py
+1
-1
No files found.
docs/rules.mk
View file @
19eeb983
REPORT
:=
report
REPORT
:=
report
DIAGRAMS
:=
data/diagrams
DIAGRAMS
:=
data/diagrams
PDFLATEX_FLAGS
=
-halt-on-error
-interaction
=
nonstopmode
\
LATEX
=
TEXINPUTS
=
$(d)
:
$(b)
: pdflatex
-halt-on-error
-interaction
=
nonstopmode
\
-output-directory
$
(
@D
)
-shell-escape
-output-directory
$
(
@D
)
-shell-escape
LATEX
=
TEXINPUTS
=
$(d)
:
$(b)
: pdflatex
$(PDFLATEX_FLAGS)
REF_WARNING
:=
"Rerun to get cross-references right"
REF_WARNING
:=
"Rerun to get cross-references right"
.PHONY
:
docs report
.PHONY
:
docs report
...
@@ -22,6 +21,6 @@ $(b)%.pdf: $(d)%.tex
...
@@ -22,6 +21,6 @@ $(b)%.pdf: $(d)%.tex
$(b)$(REPORT).pdf
:
$(d)$(DIAGRAMS).tex
$(b)$(REPORT).pdf
:
$(d)$(DIAGRAMS).tex
$(b)$(REPORT).bbl
:
$(d)$(REPORT).bib
$(b)$(REPORT).bbl
:
$(d)$(REPORT).bib
BIBINPUTS
=
$(d)
bibtex8
$
{
@
:.bbl
=.aux
}
BIBINPUTS
=
$(d)
bibtex8
$
(
@:.bbl
=
.aux
)
$(LATEX)
$(d)$(REPORT)
.tex
$(LATEX)
$(d)$(REPORT)
.tex
$(LATEX)
$(d)$(REPORT)
.tex
$(LATEX)
$(d)$(REPORT)
.tex
src/trackers/__init__.py
View file @
19eeb983
...
@@ -14,8 +14,8 @@ def _register_tracker(tracker_type):
...
@@ -14,8 +14,8 @@ def _register_tracker(tracker_type):
for
gesture_type
in
tracker_type
.
gesture_types
:
for
gesture_type
in
tracker_type
.
gesture_types
:
if
gesture_type
in
_tracker_types
:
if
gesture_type
in
_tracker_types
:
raise
ValueError
(
'Gesture type "%s" is already registered to '
raise
ValueError
(
'Gesture type "%s" is already registered to '
'tracker type "%s".'
%
(
gesture_type
,
'tracker type "%s".'
%
(
gesture_type
,
_tracker_types
[
gesture_type
].
__name__
))
_tracker_types
[
gesture_type
].
__name__
))
_tracker_types
[
gesture_type
]
=
tracker_type
_tracker_types
[
gesture_type
]
=
tracker_type
...
...
src/widgets.py
View file @
19eeb983
...
@@ -48,7 +48,7 @@ class CircularWidget(Widget):
...
@@ -48,7 +48,7 @@ class CircularWidget(Widget):
return
self
.
radius
return
self
.
radius
def
contains_event
(
self
,
event
):
def
contains_event
(
self
,
event
):
return
self
.
distance_to
(
event
.
get_touch_object
()
)
<=
self
.
radius
return
event
.
get_touch_object
().
distance_to
(
self
)
<=
self
.
radius
class
FullscreenWidget
(
RectangularWidget
):
class
FullscreenWidget
(
RectangularWidget
):
...
...
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