Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
195 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 Sep 18 18:13:10 EDT 2011 -->
6
<TITLE>
7
InputAdapter (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2011-09-18">
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="InputAdapter (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/InputAdapter.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.TextInputListener.html" title="interface in com.badlogic.gdx"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../com/badlogic/gdx/InputMultiplexer.html" title="class in com.badlogic.gdx"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../index.html?com/badlogic/gdx/InputAdapter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="InputAdapter.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</FONT>
107
<BR>
108
Class InputAdapter</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.InputAdapter</B>
112
</PRE>
113
<DL>
114
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></DD>
115
</DL>
116
<DL>
117
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../com/badlogic/gdx/input/GestureDetector.html" title="class in com.badlogic.gdx.input">GestureDetector</A>, <A HREF="../../../com/badlogic/gdx/scenes/scene2d/Stage.html" title="class in com.badlogic.gdx.scenes.scene2d">Stage</A></DD>
118
</DL>
119
<HR>
120
<DL>
121
<DT><PRE>public class <B>InputAdapter</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></DL>
122
</PRE>
123
 
124
<P>
125
An adapter class for <A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx"><CODE>InputProcessor</CODE></A>. You can derive from this and only override what you are interested in.
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/InputAdapter.html#InputAdapter()">InputAdapter</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/InputAdapter.html#keyDown(int)">keyDown</A></B>(int&nbsp;keycode)</CODE>
165
 
166
<BR>
167
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a key was pressed</TD>
168
</TR>
169
<TR BGCOLOR="white" CLASS="TableRowColor">
170
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171
<CODE>&nbsp;boolean</CODE></FONT></TD>
172
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputAdapter.html#keyTyped(char)">keyTyped</A></B>(char&nbsp;character)</CODE>
173
 
174
<BR>
175
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a key was typed</TD>
176
</TR>
177
<TR BGCOLOR="white" CLASS="TableRowColor">
178
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
179
<CODE>&nbsp;boolean</CODE></FONT></TD>
180
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputAdapter.html#keyUp(int)">keyUp</A></B>(int&nbsp;keycode)</CODE>
181
 
182
<BR>
183
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a key was released</TD>
184
</TR>
185
<TR BGCOLOR="white" CLASS="TableRowColor">
186
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187
<CODE>&nbsp;boolean</CODE></FONT></TD>
188
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputAdapter.html#scrolled(int)">scrolled</A></B>(int&nbsp;amount)</CODE>
189
 
190
<BR>
191
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the mouse wheel was scrolled.</TD>
192
</TR>
193
<TR BGCOLOR="white" CLASS="TableRowColor">
194
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195
<CODE>&nbsp;boolean</CODE></FONT></TD>
196
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputAdapter.html#touchDown(int, int, int, int)">touchDown</A></B>(int&nbsp;x,
197
          int&nbsp;y,
198
          int&nbsp;pointer,
199
          int&nbsp;button)</CODE>
200
 
201
<BR>
202
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the screen was touched or a mouse button was pressed.</TD>
203
</TR>
204
<TR BGCOLOR="white" CLASS="TableRowColor">
205
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206
<CODE>&nbsp;boolean</CODE></FONT></TD>
207
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputAdapter.html#touchDragged(int, int, int)">touchDragged</A></B>(int&nbsp;x,
208
             int&nbsp;y,
209
             int&nbsp;pointer)</CODE>
210
 
211
<BR>
212
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a finger or the mouse was dragged.</TD>
213
</TR>
214
<TR BGCOLOR="white" CLASS="TableRowColor">
215
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216
<CODE>&nbsp;boolean</CODE></FONT></TD>
217
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputAdapter.html#touchMoved(int, int)">touchMoved</A></B>(int&nbsp;x,
218
           int&nbsp;y)</CODE>
219
 
220
<BR>
221
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the mouse was moved without any buttons being pressed.</TD>
222
</TR>
223
<TR BGCOLOR="white" CLASS="TableRowColor">
224
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225
<CODE>&nbsp;boolean</CODE></FONT></TD>
226
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputAdapter.html#touchUp(int, int, int, int)">touchUp</A></B>(int&nbsp;x,
227
        int&nbsp;y,
228
        int&nbsp;pointer,
229
        int&nbsp;button)</CODE>
230
 
231
<BR>
232
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a finger was lifted or a mouse button was released.</TD>
233
</TR>
234
</TABLE>
235
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
236
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
237
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
238
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
239
</TR>
240
<TR BGCOLOR="white" CLASS="TableRowColor">
241
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
242
</TR>
243
</TABLE>
244
&nbsp;
245
<P>
246
 
247
<!-- ========= CONSTRUCTOR DETAIL ======== -->
248
 
249
<A NAME="constructor_detail"><!-- --></A>
250
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
251
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
252
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
253
<B>Constructor Detail</B></FONT></TH>
254
</TR>
255
</TABLE>
256
 
257
<A NAME="InputAdapter()"><!-- --></A><H3>
258
InputAdapter</H3>
259
<PRE>
260
public <B>InputAdapter</B>()</PRE>
261
<DL>
262
</DL>
263
 
264
<!-- ============ METHOD DETAIL ========== -->
265
 
266
<A NAME="method_detail"><!-- --></A>
267
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
268
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
269
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
270
<B>Method Detail</B></FONT></TH>
271
</TR>
272
</TABLE>
273
 
274
<A NAME="keyDown(int)"><!-- --></A><H3>
275
keyDown</H3>
276
<PRE>
277
public boolean <B>keyDown</B>(int&nbsp;keycode)</PRE>
278
<DL>
279
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#keyDown(int)">InputProcessor</A></CODE></B></DD>
280
<DD>Called when a key was pressed
281
<P>
282
<DD><DL>
283
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#keyDown(int)">keyDown</A></CODE> in interface <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE></DL>
284
</DD>
285
<DD><DL>
286
<DT><B>Parameters:</B><DD><CODE>keycode</CODE> - one of the constants in <A HREF="../../../com/badlogic/gdx/Input.Keys.html" title="class in com.badlogic.gdx"><CODE>Input.Keys</CODE></A>
287
<DT><B>Returns:</B><DD>whether the input was processed</DL>
288
</DD>
289
</DL>
290
<HR>
291
 
292
<A NAME="keyUp(int)"><!-- --></A><H3>
293
keyUp</H3>
294
<PRE>
295
public boolean <B>keyUp</B>(int&nbsp;keycode)</PRE>
296
<DL>
297
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#keyUp(int)">InputProcessor</A></CODE></B></DD>
298
<DD>Called when a key was released
299
<P>
300
<DD><DL>
301
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#keyUp(int)">keyUp</A></CODE> in interface <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE></DL>
302
</DD>
303
<DD><DL>
304
<DT><B>Parameters:</B><DD><CODE>keycode</CODE> - one of the constants in <A HREF="../../../com/badlogic/gdx/Input.Keys.html" title="class in com.badlogic.gdx"><CODE>Input.Keys</CODE></A>
305
<DT><B>Returns:</B><DD>whether the input was processed</DL>
306
</DD>
307
</DL>
308
<HR>
309
 
310
<A NAME="keyTyped(char)"><!-- --></A><H3>
311
keyTyped</H3>
312
<PRE>
313
public boolean <B>keyTyped</B>(char&nbsp;character)</PRE>
314
<DL>
315
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#keyTyped(char)">InputProcessor</A></CODE></B></DD>
316
<DD>Called when a key was typed
317
<P>
318
<DD><DL>
319
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#keyTyped(char)">keyTyped</A></CODE> in interface <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE></DL>
320
</DD>
321
<DD><DL>
322
<DT><B>Parameters:</B><DD><CODE>character</CODE> - The character
323
<DT><B>Returns:</B><DD>whether the input was processed</DL>
324
</DD>
325
</DL>
326
<HR>
327
 
328
<A NAME="touchDown(int, int, int, int)"><!-- --></A><H3>
329
touchDown</H3>
330
<PRE>
331
public boolean <B>touchDown</B>(int&nbsp;x,
332
                         int&nbsp;y,
333
                         int&nbsp;pointer,
334
                         int&nbsp;button)</PRE>
335
<DL>
336
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchDown(int, int, int, int)">InputProcessor</A></CODE></B></DD>
337
<DD>Called when the screen was touched or a mouse button was pressed. The button parameter will be <A HREF="../../../com/badlogic/gdx/Input.Buttons.html#LEFT"><CODE>Input.Buttons.LEFT</CODE></A> on
338
 Android.
339
<P>
340
<DD><DL>
341
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchDown(int, int, int, int)">touchDown</A></CODE> in interface <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE></DL>
342
</DD>
343
<DD><DL>
344
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x coordinate, origin is in the upper left corner<DD><CODE>y</CODE> - The y coordinate, origin is in the upper left corner<DD><CODE>pointer</CODE> - the pointer for the event.<DD><CODE>button</CODE> - the button
345
<DT><B>Returns:</B><DD>whether the input was processed</DL>
346
</DD>
347
</DL>
348
<HR>
349
 
350
<A NAME="touchUp(int, int, int, int)"><!-- --></A><H3>
351
touchUp</H3>
352
<PRE>
353
public boolean <B>touchUp</B>(int&nbsp;x,
354
                       int&nbsp;y,
355
                       int&nbsp;pointer,
356
                       int&nbsp;button)</PRE>
357
<DL>
358
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchUp(int, int, int, int)">InputProcessor</A></CODE></B></DD>
359
<DD>Called when a finger was lifted or a mouse button was released. The button parameter will be <A HREF="../../../com/badlogic/gdx/Input.Buttons.html#LEFT"><CODE>Input.Buttons.LEFT</CODE></A> on
360
 Android.
361
<P>
362
<DD><DL>
363
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchUp(int, int, int, int)">touchUp</A></CODE> in interface <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE></DL>
364
</DD>
365
<DD><DL>
366
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x coordinate<DD><CODE>y</CODE> - The y coordinate<DD><CODE>pointer</CODE> - the pointer for the event.<DD><CODE>button</CODE> - the button
367
<DT><B>Returns:</B><DD>whether the input was processed</DL>
368
</DD>
369
</DL>
370
<HR>
371
 
372
<A NAME="touchDragged(int, int, int)"><!-- --></A><H3>
373
touchDragged</H3>
374
<PRE>
375
public boolean <B>touchDragged</B>(int&nbsp;x,
376
                            int&nbsp;y,
377
                            int&nbsp;pointer)</PRE>
378
<DL>
379
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchDragged(int, int, int)">InputProcessor</A></CODE></B></DD>
380
<DD>Called when a finger or the mouse was dragged.
381
<P>
382
<DD><DL>
383
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchDragged(int, int, int)">touchDragged</A></CODE> in interface <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE></DL>
384
</DD>
385
<DD><DL>
386
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x coordinate<DD><CODE>y</CODE> - The y coordinate<DD><CODE>pointer</CODE> - the pointer for the event.
387
<DT><B>Returns:</B><DD>whether the input was processed</DL>
388
</DD>
389
</DL>
390
<HR>
391
 
392
<A NAME="touchMoved(int, int)"><!-- --></A><H3>
393
touchMoved</H3>
394
<PRE>
395
public boolean <B>touchMoved</B>(int&nbsp;x,
396
                          int&nbsp;y)</PRE>
397
<DL>
398
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchMoved(int, int)">InputProcessor</A></CODE></B></DD>
399
<DD>Called when the mouse was moved without any buttons being pressed. Will not be called on Android.
400
<P>
401
<DD><DL>
402
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchMoved(int, int)">touchMoved</A></CODE> in interface <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE></DL>
403
</DD>
404
<DD><DL>
405
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x coordinate<DD><CODE>y</CODE> - The y coordinate
406
<DT><B>Returns:</B><DD>whether the input was processed</DL>
407
</DD>
408
</DL>
409
<HR>
410
 
411
<A NAME="scrolled(int)"><!-- --></A><H3>
412
scrolled</H3>
413
<PRE>
414
public boolean <B>scrolled</B>(int&nbsp;amount)</PRE>
415
<DL>
416
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#scrolled(int)">InputProcessor</A></CODE></B></DD>
417
<DD>Called when the mouse wheel was scrolled. Will not be called on Android.
418
<P>
419
<DD><DL>
420
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#scrolled(int)">scrolled</A></CODE> in interface <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE></DL>
421
</DD>
422
<DD><DL>
423
<DT><B>Parameters:</B><DD><CODE>amount</CODE> - the scroll amount, -1 or 1 depending on the direction the wheel was scrolled.
424
<DT><B>Returns:</B><DD>whether the input was processed.</DL>
425
</DD>
426
</DL>
427
<!-- ========= END OF CLASS DATA ========= -->
428
<HR>
429
 
430
 
431
<!-- ======= START OF BOTTOM NAVBAR ====== -->
432
<A NAME="navbar_bottom"><!-- --></A>
433
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
434
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
435
<TR>
436
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
437
<A NAME="navbar_bottom_firstrow"><!-- --></A>
438
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
439
  <TR ALIGN="center" VALIGN="top">
440
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
441
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
442
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
443
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/InputAdapter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
444
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
445
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
446
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
447
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
448
  </TR>
449
</TABLE>
450
</TD>
451
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
452
libgdx API</EM>
453
</TD>
454
</TR>
455
 
456
<TR>
457
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
458
&nbsp;<A HREF="../../../com/badlogic/gdx/Input.TextInputListener.html" title="interface in com.badlogic.gdx"><B>PREV CLASS</B></A>&nbsp;
459
&nbsp;<A HREF="../../../com/badlogic/gdx/InputMultiplexer.html" title="class in com.badlogic.gdx"><B>NEXT CLASS</B></A></FONT></TD>
460
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
461
  <A HREF="../../../index.html?com/badlogic/gdx/InputAdapter.html" target="_top"><B>FRAMES</B></A>  &nbsp;
462
&nbsp;<A HREF="InputAdapter.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
463
&nbsp;<SCRIPT type="text/javascript">
464
  <!--
465
  if(window==top) {
466
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
467
  }
468
  //-->
469
</SCRIPT>
470
<NOSCRIPT>
471
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
472
</NOSCRIPT>
473
 
474
 
475
</FONT></TD>
476
</TR>
477
<TR>
478
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
479
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
480
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
481
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
482
</TR>
483
</TABLE>
484
<A NAME="skip-navbar_bottom"></A>
485
<!-- ======== END OF BOTTOM NAVBAR ======= -->
486
 
487
<HR>
488
 
489
                                <div style="font-size:9pt"><i>
490
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
491
                                </i></div>
492
 
493
</BODY>
494
</HTML>