Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multitouch
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
multitouch
Commits
3cced022
Commit
3cced022
authored
12 years ago
by
Taddeus Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Added a usage example.
parent
f93df800
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/report.tex
+33
-4
33 additions, 4 deletions
docs/report.tex
with
33 additions
and
4 deletions
docs/report.tex
+
33
−
4
View file @
3cced022
...
...
@@ -458,10 +458,39 @@ events.
\section
{
Example usage
}
% TODO
% vertellen hoe je tracker aanmaakt, binnen een window
%\section{Network protocol}
This section describes an example that illustrates the communication
between different components. The example application listens to tap events
in a GUI window.
\begin{verbatim}
# Create a gesture server that will be started later
server = new GestureServer object
# Add a new window to the server, representing the GUI
window = new Window object
set window position and size to that of GUIO window
add window to server
# Define a handler that must be triggered when a tap gesture is detected
begin function handler(gesture)
# Do something
end function
# Create a tracker that detects tap gestures
tracker = new TapTracker object # Where TapTracker is an implementation of
# abstract Tracker
add tracker tot window
bind handler to tracker.tap
# If the GUI toolkit allows it, bind window movement and resize handlers
# that alter the position size and sieze of the window object
# Start the gesture server (which in turn starts a driver-specific event
# server)
start server
\end{verbatim}
\section
{
Network protocol
}
% TODO
% ZeroMQ gebruiken voor communicatie tussen meerdere processen (in
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment