Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
307 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jun 03 02:18:09 CEST 2012 -->
6
<TITLE>
7
GestureDetector.GestureAdapter (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2012-06-03">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="GestureDetector.GestureAdapter (libgdx API)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/GestureDetector.GestureAdapter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../../com/badlogic/gdx/input/GestureDetector.html" title="class in com.badlogic.gdx.input"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../index.html?com/badlogic/gdx/input/GestureDetector.GestureAdapter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="GestureDetector.GestureAdapter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx.input</FONT>
107
<BR>
108
Class GestureDetector.GestureAdapter</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.input.GestureDetector.GestureAdapter</B>
112
</PRE>
113
<DL>
114
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input">GestureDetector.GestureListener</A></DD>
115
</DL>
116
<DL>
117
<DT><B>Enclosing class:</B><DD><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.html" title="class in com.badlogic.gdx.input">GestureDetector</A></DD>
118
</DL>
119
<HR>
120
<DL>
121
<DT><PRE>public static class <B>GestureDetector.GestureAdapter</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input">GestureDetector.GestureListener</A></DL>
122
</PRE>
123
 
124
<P>
125
Derrive from this if you only want to implement a subset of <A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input"><CODE>GestureDetector.GestureListener</CODE></A>.
126
<P>
127
 
128
<P>
129
<DL>
130
<DT><B>Author:</B></DT>
131
  <DD>mzechner</DD>
132
</DL>
133
<HR>
134
 
135
<P>
136
 
137
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
138
 
139
<A NAME="constructor_summary"><!-- --></A>
140
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
141
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
142
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
143
<B>Constructor Summary</B></FONT></TH>
144
</TR>
145
<TR BGCOLOR="white" CLASS="TableRowColor">
146
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureAdapter.html#GestureDetector.GestureAdapter()">GestureDetector.GestureAdapter</A></B>()</CODE>
147
 
148
<BR>
149
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
150
</TR>
151
</TABLE>
152
&nbsp;
153
<!-- ========== METHOD SUMMARY =========== -->
154
 
155
<A NAME="method_summary"><!-- --></A>
156
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
157
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
158
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
159
<B>Method Summary</B></FONT></TH>
160
</TR>
161
<TR BGCOLOR="white" CLASS="TableRowColor">
162
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163
<CODE>&nbsp;boolean</CODE></FONT></TD>
164
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureAdapter.html#fling(float, float)">fling</A></B>(float&nbsp;velocityX,
165
      float&nbsp;velocityY)</CODE>
166
 
167
<BR>
168
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the user dragged a finger over the screen and lifted it.</TD>
169
</TR>
170
<TR BGCOLOR="white" CLASS="TableRowColor">
171
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172
<CODE>&nbsp;boolean</CODE></FONT></TD>
173
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureAdapter.html#longPress(int, int)">longPress</A></B>(int&nbsp;x,
174
          int&nbsp;y)</CODE>
175
 
176
<BR>
177
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
178
</TR>
179
<TR BGCOLOR="white" CLASS="TableRowColor">
180
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
181
<CODE>&nbsp;boolean</CODE></FONT></TD>
182
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureAdapter.html#pan(int, int, int, int)">pan</A></B>(int&nbsp;x,
183
    int&nbsp;y,
184
    int&nbsp;deltaX,
185
    int&nbsp;deltaY)</CODE>
186
 
187
<BR>
188
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the user drags a finger over the screen.</TD>
189
</TR>
190
<TR BGCOLOR="white" CLASS="TableRowColor">
191
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192
<CODE>&nbsp;boolean</CODE></FONT></TD>
193
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureAdapter.html#pinch(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)">pinch</A></B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;initialFirstPointer,
194
      <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;initialSecondPointer,
195
      <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;firstPointer,
196
      <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;secondPointer)</CODE>
197
 
198
<BR>
199
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a user performs a pinch zoom gesture.</TD>
200
</TR>
201
<TR BGCOLOR="white" CLASS="TableRowColor">
202
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
203
<CODE>&nbsp;boolean</CODE></FONT></TD>
204
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureAdapter.html#tap(int, int, int)">tap</A></B>(int&nbsp;x,
205
    int&nbsp;y,
206
    int&nbsp;count)</CODE>
207
 
208
<BR>
209
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a tap occured.</TD>
210
</TR>
211
<TR BGCOLOR="white" CLASS="TableRowColor">
212
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213
<CODE>&nbsp;boolean</CODE></FONT></TD>
214
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureAdapter.html#touchDown(int, int, int)">touchDown</A></B>(int&nbsp;x,
215
          int&nbsp;y,
216
          int&nbsp;pointer)</CODE>
217
 
218
<BR>
219
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a finger went down on the screen or a mouse button was
220
 pressed.</TD>
221
</TR>
222
<TR BGCOLOR="white" CLASS="TableRowColor">
223
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224
<CODE>&nbsp;boolean</CODE></FONT></TD>
225
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureAdapter.html#zoom(float, float)">zoom</A></B>(float&nbsp;originalDistance,
226
     float&nbsp;currentDistance)</CODE>
227
 
228
<BR>
229
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the user performs a pinch zoom gesture.</TD>
230
</TR>
231
</TABLE>
232
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
233
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
234
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
235
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
236
</TR>
237
<TR BGCOLOR="white" CLASS="TableRowColor">
238
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
239
</TR>
240
</TABLE>
241
&nbsp;
242
<P>
243
 
244
<!-- ========= CONSTRUCTOR DETAIL ======== -->
245
 
246
<A NAME="constructor_detail"><!-- --></A>
247
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
248
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
249
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
250
<B>Constructor Detail</B></FONT></TH>
251
</TR>
252
</TABLE>
253
 
254
<A NAME="GestureDetector.GestureAdapter()"><!-- --></A><H3>
255
GestureDetector.GestureAdapter</H3>
256
<PRE>
257
public <B>GestureDetector.GestureAdapter</B>()</PRE>
258
<DL>
259
</DL>
260
 
261
<!-- ============ METHOD DETAIL ========== -->
262
 
263
<A NAME="method_detail"><!-- --></A>
264
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
265
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
266
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
267
<B>Method Detail</B></FONT></TH>
268
</TR>
269
</TABLE>
270
 
271
<A NAME="touchDown(int, int, int)"><!-- --></A><H3>
272
touchDown</H3>
273
<PRE>
274
public boolean <B>touchDown</B>(int&nbsp;x,
275
                         int&nbsp;y,
276
                         int&nbsp;pointer)</PRE>
277
<DL>
278
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#touchDown(int, int, int)">GestureDetector.GestureListener</A></CODE></B></DD>
279
<DD>Called when a finger went down on the screen or a mouse button was
280
 pressed.
281
<P>
282
<DD><DL>
283
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#touchDown(int, int, int)">touchDown</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input">GestureDetector.GestureListener</A></CODE></DL>
284
</DD>
285
<DD><DL>
286
 
287
<DT><B>Returns:</B><DD></DL>
288
</DD>
289
</DL>
290
<HR>
291
 
292
<A NAME="tap(int, int, int)"><!-- --></A><H3>
293
tap</H3>
294
<PRE>
295
public boolean <B>tap</B>(int&nbsp;x,
296
                   int&nbsp;y,
297
                   int&nbsp;count)</PRE>
298
<DL>
299
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#tap(int, int, int)">GestureDetector.GestureListener</A></CODE></B></DD>
300
<DD>Called when a tap occured. A tap happens if a finger went down on
301
 the screen and was lifted again without moving outside of the tap square.
302
 The tap square is a rectangular area around the initial touch position
303
 as specified on construction time of the <A HREF="../../../../com/badlogic/gdx/input/GestureDetector.html" title="class in com.badlogic.gdx.input"><CODE>GestureDetector</CODE></A>.
304
<P>
305
<DD><DL>
306
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#tap(int, int, int)">tap</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input">GestureDetector.GestureListener</A></CODE></DL>
307
</DD>
308
<DD><DL>
309
<DD><CODE>count</CODE> - the number of taps.
310
<DT><B>Returns:</B><DD></DL>
311
</DD>
312
</DL>
313
<HR>
314
 
315
<A NAME="longPress(int, int)"><!-- --></A><H3>
316
longPress</H3>
317
<PRE>
318
public boolean <B>longPress</B>(int&nbsp;x,
319
                         int&nbsp;y)</PRE>
320
<DL>
321
<DD><DL>
322
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#longPress(int, int)">longPress</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input">GestureDetector.GestureListener</A></CODE></DL>
323
</DD>
324
<DD><DL>
325
</DL>
326
</DD>
327
</DL>
328
<HR>
329
 
330
<A NAME="fling(float, float)"><!-- --></A><H3>
331
fling</H3>
332
<PRE>
333
public boolean <B>fling</B>(float&nbsp;velocityX,
334
                     float&nbsp;velocityY)</PRE>
335
<DL>
336
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#fling(float, float)">GestureDetector.GestureListener</A></CODE></B></DD>
337
<DD>Called when the user dragged a finger over the screen and lifted it. Reports
338
 the last known velocity of the finger in pixels per second.
339
<P>
340
<DD><DL>
341
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#fling(float, float)">fling</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input">GestureDetector.GestureListener</A></CODE></DL>
342
</DD>
343
<DD><DL>
344
<DT><B>Parameters:</B><DD><CODE>velocityX</CODE> - velocity on x in seconds<DD><CODE>velocityY</CODE> - velocity on y in seconds
345
<DT><B>Returns:</B><DD></DL>
346
</DD>
347
</DL>
348
<HR>
349
 
350
<A NAME="pan(int, int, int, int)"><!-- --></A><H3>
351
pan</H3>
352
<PRE>
353
public boolean <B>pan</B>(int&nbsp;x,
354
                   int&nbsp;y,
355
                   int&nbsp;deltaX,
356
                   int&nbsp;deltaY)</PRE>
357
<DL>
358
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#pan(int, int, int, int)">GestureDetector.GestureListener</A></CODE></B></DD>
359
<DD>Called when the user drags a finger over the screen.
360
<P>
361
<DD><DL>
362
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#pan(int, int, int, int)">pan</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input">GestureDetector.GestureListener</A></CODE></DL>
363
</DD>
364
<DD><DL>
365
<DD><CODE>deltaX</CODE> - the difference in pixels to the last drag event on x.<DD><CODE>deltaY</CODE> - the difference in pixels to the last drag event on y.
366
<DT><B>Returns:</B><DD></DL>
367
</DD>
368
</DL>
369
<HR>
370
 
371
<A NAME="zoom(float, float)"><!-- --></A><H3>
372
zoom</H3>
373
<PRE>
374
public boolean <B>zoom</B>(float&nbsp;originalDistance,
375
                    float&nbsp;currentDistance)</PRE>
376
<DL>
377
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#zoom(float, float)">GestureDetector.GestureListener</A></CODE></B></DD>
378
<DD>Called when the user performs a pinch zoom gesture. The original distance
379
 is the distance in pixels when the gesture started.
380
<P>
381
<DD><DL>
382
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#zoom(float, float)">zoom</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input">GestureDetector.GestureListener</A></CODE></DL>
383
</DD>
384
<DD><DL>
385
<DT><B>Parameters:</B><DD><CODE>originalDistance</CODE> - distance between fingers when the gesture started.<DD><CODE>currentDistance</CODE> - current distance between fingers.
386
<DT><B>Returns:</B><DD></DL>
387
</DD>
388
</DL>
389
<HR>
390
 
391
<A NAME="pinch(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)"><!-- --></A><H3>
392
pinch</H3>
393
<PRE>
394
public boolean <B>pinch</B>(<A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;initialFirstPointer,
395
                     <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;initialSecondPointer,
396
                     <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;firstPointer,
397
                     <A HREF="../../../../com/badlogic/gdx/math/Vector2.html" title="class in com.badlogic.gdx.math">Vector2</A>&nbsp;secondPointer)</PRE>
398
<DL>
399
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#pinch(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)">GestureDetector.GestureListener</A></CODE></B></DD>
400
<DD>Called when a user performs a pinch zoom gesture. Reports the initial positions
401
 of the two involved fingers and their current positions.
402
<P>
403
<DD><DL>
404
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html#pinch(com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2, com.badlogic.gdx.math.Vector2)">pinch</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input">GestureDetector.GestureListener</A></CODE></DL>
405
</DD>
406
<DD><DL>
407
 
408
<DT><B>Returns:</B><DD></DL>
409
</DD>
410
</DL>
411
<!-- ========= END OF CLASS DATA ========= -->
412
<HR>
413
 
414
 
415
<!-- ======= START OF BOTTOM NAVBAR ====== -->
416
<A NAME="navbar_bottom"><!-- --></A>
417
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
418
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
419
<TR>
420
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
421
<A NAME="navbar_bottom_firstrow"><!-- --></A>
422
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
423
  <TR ALIGN="center" VALIGN="top">
424
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
425
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
426
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
427
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/GestureDetector.GestureAdapter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
428
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
429
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
430
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
431
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
432
  </TR>
433
</TABLE>
434
</TD>
435
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
436
libgdx API</EM>
437
</TD>
438
</TR>
439
 
440
<TR>
441
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
442
&nbsp;<A HREF="../../../../com/badlogic/gdx/input/GestureDetector.html" title="class in com.badlogic.gdx.input"><B>PREV CLASS</B></A>&nbsp;
443
&nbsp;<A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input"><B>NEXT CLASS</B></A></FONT></TD>
444
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
445
  <A HREF="../../../../index.html?com/badlogic/gdx/input/GestureDetector.GestureAdapter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
446
&nbsp;<A HREF="GestureDetector.GestureAdapter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
447
&nbsp;<SCRIPT type="text/javascript">
448
  <!--
449
  if(window==top) {
450
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
451
  }
452
  //-->
453
</SCRIPT>
454
<NOSCRIPT>
455
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
456
</NOSCRIPT>
457
 
458
 
459
</FONT></TD>
460
</TR>
461
<TR>
462
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
463
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
464
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
465
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
466
</TR>
467
</TABLE>
468
<A NAME="skip-navbar_bottom"></A>
469
<!-- ======== END OF BOTTOM NAVBAR ======= -->
470
 
471
<HR>
472
 
473
                                <div style="font-size:9pt"><i>
474
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
475
                                </i></div>
476
 
477
</BODY>
478
</HTML>