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
3cced022
Commit
3cced022
authored
Jun 05, 2012
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a usage example.
parent
f93df800
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
4 deletions
+33
-4
docs/report.tex
docs/report.tex
+33
-4
No files found.
docs/report.tex
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
...
...
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