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:08 CEST 2012 -->
6
<TITLE>
7
InputMultiplexer (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="InputMultiplexer (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/InputMultiplexer.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/InputAdapter.html" title="class in com.badlogic.gdx"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface 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/InputMultiplexer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="InputMultiplexer.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 InputMultiplexer</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.InputMultiplexer</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
<HR>
117
<DL>
118
<DT><PRE>public class <B>InputMultiplexer</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></DL>
119
</PRE>
120
 
121
<P>
122
An <A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx"><CODE>InputProcessor</CODE></A> that delegates to an ordered list of other InputProcessors. Delegation for an event stops if a
123
 processor returns true, which indicates that the event was handled.
124
<P>
125
 
126
<P>
127
<DL>
128
<DT><B>Author:</B></DT>
129
  <DD>Nathan Sweet</DD>
130
</DL>
131
<HR>
132
 
133
<P>
134
 
135
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
136
 
137
<A NAME="constructor_summary"><!-- --></A>
138
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
139
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
140
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
141
<B>Constructor Summary</B></FONT></TH>
142
</TR>
143
<TR BGCOLOR="white" CLASS="TableRowColor">
144
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#InputMultiplexer()">InputMultiplexer</A></B>()</CODE>
145
 
146
<BR>
147
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
148
</TR>
149
<TR BGCOLOR="white" CLASS="TableRowColor">
150
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#InputMultiplexer(com.badlogic.gdx.InputProcessor...)">InputMultiplexer</A></B>(<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>...&nbsp;processors)</CODE>
151
 
152
<BR>
153
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
154
</TR>
155
</TABLE>
156
&nbsp;
157
<!-- ========== METHOD SUMMARY =========== -->
158
 
159
<A NAME="method_summary"><!-- --></A>
160
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
161
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
162
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
163
<B>Method Summary</B></FONT></TH>
164
</TR>
165
<TR BGCOLOR="white" CLASS="TableRowColor">
166
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
167
<CODE>&nbsp;void</CODE></FONT></TD>
168
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#addProcessor(com.badlogic.gdx.InputProcessor)">addProcessor</A></B>(<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&nbsp;processor)</CODE>
169
 
170
<BR>
171
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
172
</TR>
173
<TR BGCOLOR="white" CLASS="TableRowColor">
174
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
175
<CODE>&nbsp;void</CODE></FONT></TD>
176
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#addProcessor(int, com.badlogic.gdx.InputProcessor)">addProcessor</A></B>(int&nbsp;index,
177
             <A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&nbsp;processor)</CODE>
178
 
179
<BR>
180
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
181
</TR>
182
<TR BGCOLOR="white" CLASS="TableRowColor">
183
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
184
<CODE>&nbsp;void</CODE></FONT></TD>
185
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#clear()">clear</A></B>()</CODE>
186
 
187
<BR>
188
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
189
</TR>
190
<TR BGCOLOR="white" CLASS="TableRowColor">
191
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
192
<CODE>&nbsp;<A HREF="../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array</A>&lt;<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&gt;</CODE></FONT></TD>
193
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#getProcessors()">getProcessors</A></B>()</CODE>
194
 
195
<BR>
196
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
197
</TR>
198
<TR BGCOLOR="white" CLASS="TableRowColor">
199
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
200
<CODE>&nbsp;boolean</CODE></FONT></TD>
201
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#keyDown(int)">keyDown</A></B>(int&nbsp;keycode)</CODE>
202
 
203
<BR>
204
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a key was pressed</TD>
205
</TR>
206
<TR BGCOLOR="white" CLASS="TableRowColor">
207
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208
<CODE>&nbsp;boolean</CODE></FONT></TD>
209
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#keyTyped(char)">keyTyped</A></B>(char&nbsp;character)</CODE>
210
 
211
<BR>
212
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a key was typed</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/InputMultiplexer.html#keyUp(int)">keyUp</A></B>(int&nbsp;keycode)</CODE>
218
 
219
<BR>
220
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a key was released</TD>
221
</TR>
222
<TR BGCOLOR="white" CLASS="TableRowColor">
223
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
224
<CODE>&nbsp;void</CODE></FONT></TD>
225
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#removeProcessor(com.badlogic.gdx.InputProcessor)">removeProcessor</A></B>(<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&nbsp;processor)</CODE>
226
 
227
<BR>
228
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
229
</TR>
230
<TR BGCOLOR="white" CLASS="TableRowColor">
231
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232
<CODE>&nbsp;void</CODE></FONT></TD>
233
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#removeProcessor(int)">removeProcessor</A></B>(int&nbsp;index)</CODE>
234
 
235
<BR>
236
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
237
</TR>
238
<TR BGCOLOR="white" CLASS="TableRowColor">
239
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240
<CODE>&nbsp;boolean</CODE></FONT></TD>
241
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#scrolled(int)">scrolled</A></B>(int&nbsp;amount)</CODE>
242
 
243
<BR>
244
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the mouse wheel was scrolled.</TD>
245
</TR>
246
<TR BGCOLOR="white" CLASS="TableRowColor">
247
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248
<CODE>&nbsp;void</CODE></FONT></TD>
249
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#setProcessors(com.badlogic.gdx.utils.Array)">setProcessors</A></B>(<A HREF="../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array</A>&lt;<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&gt;&nbsp;processors)</CODE>
250
 
251
<BR>
252
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
253
</TR>
254
<TR BGCOLOR="white" CLASS="TableRowColor">
255
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
256
<CODE>&nbsp;int</CODE></FONT></TD>
257
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#size()">size</A></B>()</CODE>
258
 
259
<BR>
260
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
261
</TR>
262
<TR BGCOLOR="white" CLASS="TableRowColor">
263
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264
<CODE>&nbsp;boolean</CODE></FONT></TD>
265
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#touchDown(int, int, int, int)">touchDown</A></B>(int&nbsp;x,
266
          int&nbsp;y,
267
          int&nbsp;pointer,
268
          int&nbsp;button)</CODE>
269
 
270
<BR>
271
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the screen was touched or a mouse button was pressed.</TD>
272
</TR>
273
<TR BGCOLOR="white" CLASS="TableRowColor">
274
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
275
<CODE>&nbsp;boolean</CODE></FONT></TD>
276
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#touchDragged(int, int, int)">touchDragged</A></B>(int&nbsp;x,
277
             int&nbsp;y,
278
             int&nbsp;pointer)</CODE>
279
 
280
<BR>
281
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a finger or the mouse was dragged.</TD>
282
</TR>
283
<TR BGCOLOR="white" CLASS="TableRowColor">
284
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
285
<CODE>&nbsp;boolean</CODE></FONT></TD>
286
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#touchMoved(int, int)">touchMoved</A></B>(int&nbsp;x,
287
           int&nbsp;y)</CODE>
288
 
289
<BR>
290
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when the mouse was moved without any buttons being pressed.</TD>
291
</TR>
292
<TR BGCOLOR="white" CLASS="TableRowColor">
293
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
294
<CODE>&nbsp;boolean</CODE></FONT></TD>
295
<TD><CODE><B><A HREF="../../../com/badlogic/gdx/InputMultiplexer.html#touchUp(int, int, int, int)">touchUp</A></B>(int&nbsp;x,
296
        int&nbsp;y,
297
        int&nbsp;pointer,
298
        int&nbsp;button)</CODE>
299
 
300
<BR>
301
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called when a finger was lifted or a mouse button was released.</TD>
302
</TR>
303
</TABLE>
304
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
305
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
306
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
307
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
308
</TR>
309
<TR BGCOLOR="white" CLASS="TableRowColor">
310
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
311
</TR>
312
</TABLE>
313
&nbsp;
314
<P>
315
 
316
<!-- ========= CONSTRUCTOR DETAIL ======== -->
317
 
318
<A NAME="constructor_detail"><!-- --></A>
319
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
320
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
321
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
322
<B>Constructor Detail</B></FONT></TH>
323
</TR>
324
</TABLE>
325
 
326
<A NAME="InputMultiplexer()"><!-- --></A><H3>
327
InputMultiplexer</H3>
328
<PRE>
329
public <B>InputMultiplexer</B>()</PRE>
330
<DL>
331
</DL>
332
<HR>
333
 
334
<A NAME="InputMultiplexer(com.badlogic.gdx.InputProcessor...)"><!-- --></A><H3>
335
InputMultiplexer</H3>
336
<PRE>
337
public <B>InputMultiplexer</B>(<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>...&nbsp;processors)</PRE>
338
<DL>
339
</DL>
340
 
341
<!-- ============ METHOD DETAIL ========== -->
342
 
343
<A NAME="method_detail"><!-- --></A>
344
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
345
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
346
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
347
<B>Method Detail</B></FONT></TH>
348
</TR>
349
</TABLE>
350
 
351
<A NAME="addProcessor(int, com.badlogic.gdx.InputProcessor)"><!-- --></A><H3>
352
addProcessor</H3>
353
<PRE>
354
public void <B>addProcessor</B>(int&nbsp;index,
355
                         <A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&nbsp;processor)</PRE>
356
<DL>
357
<DD><DL>
358
</DL>
359
</DD>
360
<DD><DL>
361
</DL>
362
</DD>
363
</DL>
364
<HR>
365
 
366
<A NAME="removeProcessor(int)"><!-- --></A><H3>
367
removeProcessor</H3>
368
<PRE>
369
public void <B>removeProcessor</B>(int&nbsp;index)</PRE>
370
<DL>
371
<DD><DL>
372
</DL>
373
</DD>
374
<DD><DL>
375
</DL>
376
</DD>
377
</DL>
378
<HR>
379
 
380
<A NAME="addProcessor(com.badlogic.gdx.InputProcessor)"><!-- --></A><H3>
381
addProcessor</H3>
382
<PRE>
383
public void <B>addProcessor</B>(<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&nbsp;processor)</PRE>
384
<DL>
385
<DD><DL>
386
</DL>
387
</DD>
388
<DD><DL>
389
</DL>
390
</DD>
391
</DL>
392
<HR>
393
 
394
<A NAME="removeProcessor(com.badlogic.gdx.InputProcessor)"><!-- --></A><H3>
395
removeProcessor</H3>
396
<PRE>
397
public void <B>removeProcessor</B>(<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&nbsp;processor)</PRE>
398
<DL>
399
<DD><DL>
400
</DL>
401
</DD>
402
<DD><DL>
403
</DL>
404
</DD>
405
</DL>
406
<HR>
407
 
408
<A NAME="size()"><!-- --></A><H3>
409
size</H3>
410
<PRE>
411
public int <B>size</B>()</PRE>
412
<DL>
413
<DD><DL>
414
</DL>
415
</DD>
416
<DD><DL>
417
 
418
<DT><B>Returns:</B><DD>the number of processors in this multiplexer</DL>
419
</DD>
420
</DL>
421
<HR>
422
 
423
<A NAME="clear()"><!-- --></A><H3>
424
clear</H3>
425
<PRE>
426
public void <B>clear</B>()</PRE>
427
<DL>
428
<DD><DL>
429
</DL>
430
</DD>
431
<DD><DL>
432
</DL>
433
</DD>
434
</DL>
435
<HR>
436
 
437
<A NAME="setProcessors(com.badlogic.gdx.utils.Array)"><!-- --></A><H3>
438
setProcessors</H3>
439
<PRE>
440
public void <B>setProcessors</B>(<A HREF="../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array</A>&lt;<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&gt;&nbsp;processors)</PRE>
441
<DL>
442
<DD><DL>
443
</DL>
444
</DD>
445
<DD><DL>
446
</DL>
447
</DD>
448
</DL>
449
<HR>
450
 
451
<A NAME="getProcessors()"><!-- --></A><H3>
452
getProcessors</H3>
453
<PRE>
454
public <A HREF="../../../com/badlogic/gdx/utils/Array.html" title="class in com.badlogic.gdx.utils">Array</A>&lt;<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&gt; <B>getProcessors</B>()</PRE>
455
<DL>
456
<DD><DL>
457
</DL>
458
</DD>
459
<DD><DL>
460
</DL>
461
</DD>
462
</DL>
463
<HR>
464
 
465
<A NAME="keyDown(int)"><!-- --></A><H3>
466
keyDown</H3>
467
<PRE>
468
public boolean <B>keyDown</B>(int&nbsp;keycode)</PRE>
469
<DL>
470
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#keyDown(int)">InputProcessor</A></CODE></B></DD>
471
<DD>Called when a key was pressed
472
<P>
473
<DD><DL>
474
<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>
475
</DD>
476
<DD><DL>
477
<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>
478
<DT><B>Returns:</B><DD>whether the input was processed</DL>
479
</DD>
480
</DL>
481
<HR>
482
 
483
<A NAME="keyUp(int)"><!-- --></A><H3>
484
keyUp</H3>
485
<PRE>
486
public boolean <B>keyUp</B>(int&nbsp;keycode)</PRE>
487
<DL>
488
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#keyUp(int)">InputProcessor</A></CODE></B></DD>
489
<DD>Called when a key was released
490
<P>
491
<DD><DL>
492
<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>
493
</DD>
494
<DD><DL>
495
<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>
496
<DT><B>Returns:</B><DD>whether the input was processed</DL>
497
</DD>
498
</DL>
499
<HR>
500
 
501
<A NAME="keyTyped(char)"><!-- --></A><H3>
502
keyTyped</H3>
503
<PRE>
504
public boolean <B>keyTyped</B>(char&nbsp;character)</PRE>
505
<DL>
506
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#keyTyped(char)">InputProcessor</A></CODE></B></DD>
507
<DD>Called when a key was typed
508
<P>
509
<DD><DL>
510
<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>
511
</DD>
512
<DD><DL>
513
<DT><B>Parameters:</B><DD><CODE>character</CODE> - The character
514
<DT><B>Returns:</B><DD>whether the input was processed</DL>
515
</DD>
516
</DL>
517
<HR>
518
 
519
<A NAME="touchDown(int, int, int, int)"><!-- --></A><H3>
520
touchDown</H3>
521
<PRE>
522
public boolean <B>touchDown</B>(int&nbsp;x,
523
                         int&nbsp;y,
524
                         int&nbsp;pointer,
525
                         int&nbsp;button)</PRE>
526
<DL>
527
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchDown(int, int, int, int)">InputProcessor</A></CODE></B></DD>
528
<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
529
 Android.
530
<P>
531
<DD><DL>
532
<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>
533
</DD>
534
<DD><DL>
535
<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
536
<DT><B>Returns:</B><DD>whether the input was processed</DL>
537
</DD>
538
</DL>
539
<HR>
540
 
541
<A NAME="touchUp(int, int, int, int)"><!-- --></A><H3>
542
touchUp</H3>
543
<PRE>
544
public boolean <B>touchUp</B>(int&nbsp;x,
545
                       int&nbsp;y,
546
                       int&nbsp;pointer,
547
                       int&nbsp;button)</PRE>
548
<DL>
549
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchUp(int, int, int, int)">InputProcessor</A></CODE></B></DD>
550
<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
551
 Android.
552
<P>
553
<DD><DL>
554
<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>
555
</DD>
556
<DD><DL>
557
<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
558
<DT><B>Returns:</B><DD>whether the input was processed</DL>
559
</DD>
560
</DL>
561
<HR>
562
 
563
<A NAME="touchDragged(int, int, int)"><!-- --></A><H3>
564
touchDragged</H3>
565
<PRE>
566
public boolean <B>touchDragged</B>(int&nbsp;x,
567
                            int&nbsp;y,
568
                            int&nbsp;pointer)</PRE>
569
<DL>
570
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchDragged(int, int, int)">InputProcessor</A></CODE></B></DD>
571
<DD>Called when a finger or the mouse was dragged.
572
<P>
573
<DD><DL>
574
<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>
575
</DD>
576
<DD><DL>
577
<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.
578
<DT><B>Returns:</B><DD>whether the input was processed</DL>
579
</DD>
580
</DL>
581
<HR>
582
 
583
<A NAME="touchMoved(int, int)"><!-- --></A><H3>
584
touchMoved</H3>
585
<PRE>
586
public boolean <B>touchMoved</B>(int&nbsp;x,
587
                          int&nbsp;y)</PRE>
588
<DL>
589
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#touchMoved(int, int)">InputProcessor</A></CODE></B></DD>
590
<DD>Called when the mouse was moved without any buttons being pressed. Will not be called on Android.
591
<P>
592
<DD><DL>
593
<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>
594
</DD>
595
<DD><DL>
596
<DT><B>Parameters:</B><DD><CODE>x</CODE> - The x coordinate<DD><CODE>y</CODE> - The y coordinate
597
<DT><B>Returns:</B><DD>whether the input was processed</DL>
598
</DD>
599
</DL>
600
<HR>
601
 
602
<A NAME="scrolled(int)"><!-- --></A><H3>
603
scrolled</H3>
604
<PRE>
605
public boolean <B>scrolled</B>(int&nbsp;amount)</PRE>
606
<DL>
607
<DD><B>Description copied from interface: <CODE><A HREF="../../../com/badlogic/gdx/InputProcessor.html#scrolled(int)">InputProcessor</A></CODE></B></DD>
608
<DD>Called when the mouse wheel was scrolled. Will not be called on Android.
609
<P>
610
<DD><DL>
611
<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>
612
</DD>
613
<DD><DL>
614
<DT><B>Parameters:</B><DD><CODE>amount</CODE> - the scroll amount, -1 or 1 depending on the direction the wheel was scrolled.
615
<DT><B>Returns:</B><DD>whether the input was processed.</DL>
616
</DD>
617
</DL>
618
<!-- ========= END OF CLASS DATA ========= -->
619
<HR>
620
 
621
 
622
<!-- ======= START OF BOTTOM NAVBAR ====== -->
623
<A NAME="navbar_bottom"><!-- --></A>
624
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
625
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
626
<TR>
627
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
628
<A NAME="navbar_bottom_firstrow"><!-- --></A>
629
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
630
  <TR ALIGN="center" VALIGN="top">
631
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
632
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
633
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
634
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/InputMultiplexer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
635
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
636
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
637
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
638
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
639
  </TR>
640
</TABLE>
641
</TD>
642
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
643
libgdx API</EM>
644
</TD>
645
</TR>
646
 
647
<TR>
648
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
649
&nbsp;<A HREF="../../../com/badlogic/gdx/InputAdapter.html" title="class in com.badlogic.gdx"><B>PREV CLASS</B></A>&nbsp;
650
&nbsp;<A HREF="../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx"><B>NEXT CLASS</B></A></FONT></TD>
651
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
652
  <A HREF="../../../index.html?com/badlogic/gdx/InputMultiplexer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
653
&nbsp;<A HREF="InputMultiplexer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
654
&nbsp;<SCRIPT type="text/javascript">
655
  <!--
656
  if(window==top) {
657
    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
658
  }
659
  //-->
660
</SCRIPT>
661
<NOSCRIPT>
662
  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
663
</NOSCRIPT>
664
 
665
 
666
</FONT></TD>
667
</TR>
668
<TR>
669
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
670
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
671
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
672
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
673
</TR>
674
</TABLE>
675
<A NAME="skip-navbar_bottom"></A>
676
<!-- ======== END OF BOTTOM NAVBAR ======= -->
677
 
678
<HR>
679
 
680
                                <div style="font-size:9pt"><i>
681
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
682
                                </i></div>
683
 
684
</BODY>
685
</HTML>