Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 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 Jan 27 20:37:07 CET 2013 -->
6
<TITLE>
7
RemoteInput (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
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="RemoteInput (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/RemoteInput.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.GestureListener.html" title="interface in com.badlogic.gdx.input"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/input/RemoteSender.html" title="class 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/RemoteInput.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="RemoteInput.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;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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 RemoteInput</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.input.RemoteInput</B>
112
</PRE>
113
<DL>
114
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A>, java.lang.Runnable</DD>
115
</DL>
116
<HR>
117
<DL>
118
<DT><PRE>public class <B>RemoteInput</B><DT>extends java.lang.Object<DT>implements java.lang.Runnable, <A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></DL>
119
</PRE>
120
 
121
<P>
122
<p>
123
 An <A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx"><CODE>Input</CODE></A> implementation that receives touch, key, accelerometer and compass events from a remote Android device. Just
124
 instantiate it and specify the port it should listen on for incoming connections (default 8190). Then store the new RemoteInput
125
 instance in Gdx.input. That's it.
126
 </p>
127
 
128
 <p>
129
 On your Android device you can use the gdx-remote application available on the Google Code page as an APK or in SVN
130
 (extensions/gdx-remote). Open it, specify the IP address and the port of the PC your libgdx app is running on and then tap
131
 away.
132
 </p>
133
 
134
 <p>
135
 The touch coordinates will be translated to the desktop window's coordinate system, no matter the orientation of the device
136
 </p>
137
<P>
138
 
139
<P>
140
<DL>
141
<DT><B>Author:</B></DT>
142
  <DD>mzechner</DD>
143
</DL>
144
<HR>
145
 
146
<P>
147
<!-- ======== NESTED CLASS SUMMARY ======== -->
148
 
149
<A NAME="nested_class_summary"><!-- --></A>
150
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
151
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
152
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
153
<B>Nested Class Summary</B></FONT></TH>
154
</TR>
155
</TABLE>
156
&nbsp;<A NAME="nested_classes_inherited_from_class_com.badlogic.gdx.Input"><!-- --></A>
157
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
158
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
159
<TH ALIGN="left"><B>Nested classes/interfaces inherited from interface com.badlogic.gdx.<A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></B></TH>
160
</TR>
161
<TR BGCOLOR="white" CLASS="TableRowColor">
162
<TD><CODE><A HREF="../../../../com/badlogic/gdx/Input.Buttons.html" title="class in com.badlogic.gdx">Input.Buttons</A>, <A HREF="../../../../com/badlogic/gdx/Input.Keys.html" title="class in com.badlogic.gdx">Input.Keys</A>, <A HREF="../../../../com/badlogic/gdx/Input.Orientation.html" title="enum in com.badlogic.gdx">Input.Orientation</A>, <A HREF="../../../../com/badlogic/gdx/Input.Peripheral.html" title="enum in com.badlogic.gdx">Input.Peripheral</A>, <A HREF="../../../../com/badlogic/gdx/Input.TextInputListener.html" title="interface in com.badlogic.gdx">Input.TextInputListener</A></CODE></TD>
163
</TR>
164
</TABLE>
165
&nbsp;
166
<!-- =========== FIELD SUMMARY =========== -->
167
 
168
<A NAME="field_summary"><!-- --></A>
169
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
170
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
171
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
172
<B>Field Summary</B></FONT></TH>
173
</TR>
174
<TR BGCOLOR="white" CLASS="TableRowColor">
175
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
176
<CODE>static&nbsp;int</CODE></FONT></TD>
177
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#DEFAULT_PORT">DEFAULT_PORT</A></B></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;java.lang.String[]</CODE></FONT></TD>
185
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#ips">ips</A></B></CODE>
186
 
187
<BR>
188
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
189
</TR>
190
</TABLE>
191
&nbsp;
192
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
193
 
194
<A NAME="constructor_summary"><!-- --></A>
195
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
196
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
197
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
198
<B>Constructor Summary</B></FONT></TH>
199
</TR>
200
<TR BGCOLOR="white" CLASS="TableRowColor">
201
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#RemoteInput()">RemoteInput</A></B>()</CODE>
202
 
203
<BR>
204
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
205
</TR>
206
<TR BGCOLOR="white" CLASS="TableRowColor">
207
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#RemoteInput(int)">RemoteInput</A></B>(int&nbsp;port)</CODE>
208
 
209
<BR>
210
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
211
</TR>
212
</TABLE>
213
&nbsp;
214
<!-- ========== METHOD SUMMARY =========== -->
215
 
216
<A NAME="method_summary"><!-- --></A>
217
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
218
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
219
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
220
<B>Method Summary</B></FONT></TH>
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/input/RemoteInput.html#cancelVibrate()">cancelVibrate</A></B>()</CODE>
226
 
227
<BR>
228
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Stops the vibrator</TD>
229
</TR>
230
<TR BGCOLOR="white" CLASS="TableRowColor">
231
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
232
<CODE>&nbsp;float</CODE></FONT></TD>
233
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getAccelerometerX()">getAccelerometerX</A></B>()</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;float</CODE></FONT></TD>
241
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getAccelerometerY()">getAccelerometerY</A></B>()</CODE>
242
 
243
<BR>
244
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
245
</TR>
246
<TR BGCOLOR="white" CLASS="TableRowColor">
247
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
248
<CODE>&nbsp;float</CODE></FONT></TD>
249
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getAccelerometerZ()">getAccelerometerZ</A></B>()</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;float</CODE></FONT></TD>
257
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getAzimuth()">getAzimuth</A></B>()</CODE>
258
 
259
<BR>
260
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The azimuth is the angle of the device's orientation around the z-axis.</TD>
261
</TR>
262
<TR BGCOLOR="white" CLASS="TableRowColor">
263
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
264
<CODE>&nbsp;long</CODE></FONT></TD>
265
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getCurrentEventTime()">getCurrentEventTime</A></B>()</CODE>
266
 
267
<BR>
268
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
269
</TR>
270
<TR BGCOLOR="white" CLASS="TableRowColor">
271
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
272
<CODE>&nbsp;int</CODE></FONT></TD>
273
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getDeltaX()">getDeltaX</A></B>()</CODE>
274
 
275
<BR>
276
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
277
</TR>
278
<TR BGCOLOR="white" CLASS="TableRowColor">
279
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
280
<CODE>&nbsp;int</CODE></FONT></TD>
281
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getDeltaX(int)">getDeltaX</A></B>(int&nbsp;pointer)</CODE>
282
 
283
<BR>
284
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
285
</TR>
286
<TR BGCOLOR="white" CLASS="TableRowColor">
287
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
288
<CODE>&nbsp;int</CODE></FONT></TD>
289
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getDeltaY()">getDeltaY</A></B>()</CODE>
290
 
291
<BR>
292
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
293
</TR>
294
<TR BGCOLOR="white" CLASS="TableRowColor">
295
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
296
<CODE>&nbsp;int</CODE></FONT></TD>
297
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getDeltaY(int)">getDeltaY</A></B>(int&nbsp;pointer)</CODE>
298
 
299
<BR>
300
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
301
</TR>
302
<TR BGCOLOR="white" CLASS="TableRowColor">
303
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
304
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A></CODE></FONT></TD>
305
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getInputProcessor()">getInputProcessor</A></B>()</CODE>
306
 
307
<BR>
308
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
309
</TR>
310
<TR BGCOLOR="white" CLASS="TableRowColor">
311
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
312
<CODE>&nbsp;java.lang.String[]</CODE></FONT></TD>
313
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getIPs()">getIPs</A></B>()</CODE>
314
 
315
<BR>
316
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
317
</TR>
318
<TR BGCOLOR="white" CLASS="TableRowColor">
319
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
320
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/Input.Orientation.html" title="enum in com.badlogic.gdx">Input.Orientation</A></CODE></FONT></TD>
321
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getNativeOrientation()">getNativeOrientation</A></B>()</CODE>
322
 
323
<BR>
324
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
325
</TR>
326
<TR BGCOLOR="white" CLASS="TableRowColor">
327
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
328
<CODE>&nbsp;float</CODE></FONT></TD>
329
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getPitch()">getPitch</A></B>()</CODE>
330
 
331
<BR>
332
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The pitch is the angle of the device's orientation around the x-axis.</TD>
333
</TR>
334
<TR BGCOLOR="white" CLASS="TableRowColor">
335
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
336
<CODE>&nbsp;void</CODE></FONT></TD>
337
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getPlaceholderTextInput(com.badlogic.gdx.Input.TextInputListener, java.lang.String, java.lang.String)">getPlaceholderTextInput</A></B>(<A HREF="../../../../com/badlogic/gdx/Input.TextInputListener.html" title="interface in com.badlogic.gdx">Input.TextInputListener</A>&nbsp;listener,
338
                        java.lang.String&nbsp;title,
339
                        java.lang.String&nbsp;placeholder)</CODE>
340
 
341
<BR>
342
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System dependent method to input a string of text.</TD>
343
</TR>
344
<TR BGCOLOR="white" CLASS="TableRowColor">
345
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
346
<CODE>&nbsp;float</CODE></FONT></TD>
347
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getRoll()">getRoll</A></B>()</CODE>
348
 
349
<BR>
350
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The roll is the angle of the device's orientation around the y-axis.</TD>
351
</TR>
352
<TR BGCOLOR="white" CLASS="TableRowColor">
353
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
354
<CODE>&nbsp;int</CODE></FONT></TD>
355
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getRotation()">getRotation</A></B>()</CODE>
356
 
357
<BR>
358
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
359
</TR>
360
<TR BGCOLOR="white" CLASS="TableRowColor">
361
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
362
<CODE>&nbsp;void</CODE></FONT></TD>
363
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getRotationMatrix(float[])">getRotationMatrix</A></B>(float[]&nbsp;matrix)</CODE>
364
 
365
<BR>
366
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the rotation matrix describing the devices rotation as per <a href=
367
 "http://developer.android.com/reference/android/hardware/SensorManager.html#getRotationMatrix(float[], float[], float[], float[])"
368
 >SensorManager#getRotationMatrix(float[], float[], float[], float[])</a>.</TD>
369
</TR>
370
<TR BGCOLOR="white" CLASS="TableRowColor">
371
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
372
<CODE>&nbsp;void</CODE></FONT></TD>
373
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getTextInput(com.badlogic.gdx.Input.TextInputListener, java.lang.String, java.lang.String)">getTextInput</A></B>(<A HREF="../../../../com/badlogic/gdx/Input.TextInputListener.html" title="interface in com.badlogic.gdx">Input.TextInputListener</A>&nbsp;listener,
374
             java.lang.String&nbsp;title,
375
             java.lang.String&nbsp;text)</CODE>
376
 
377
<BR>
378
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System dependent method to input a string of text.</TD>
379
</TR>
380
<TR BGCOLOR="white" CLASS="TableRowColor">
381
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
382
<CODE>&nbsp;int</CODE></FONT></TD>
383
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getX()">getX</A></B>()</CODE>
384
 
385
<BR>
386
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
387
</TR>
388
<TR BGCOLOR="white" CLASS="TableRowColor">
389
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
390
<CODE>&nbsp;int</CODE></FONT></TD>
391
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getX(int)">getX</A></B>(int&nbsp;pointer)</CODE>
392
 
393
<BR>
394
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the x coordinate in screen coordinates of the given pointer.</TD>
395
</TR>
396
<TR BGCOLOR="white" CLASS="TableRowColor">
397
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
398
<CODE>&nbsp;int</CODE></FONT></TD>
399
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getY()">getY</A></B>()</CODE>
400
 
401
<BR>
402
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
403
</TR>
404
<TR BGCOLOR="white" CLASS="TableRowColor">
405
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
406
<CODE>&nbsp;int</CODE></FONT></TD>
407
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#getY(int)">getY</A></B>(int&nbsp;pointer)</CODE>
408
 
409
<BR>
410
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the y coordinate in screen coordinates of the given pointer.</TD>
411
</TR>
412
<TR BGCOLOR="white" CLASS="TableRowColor">
413
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
414
<CODE>&nbsp;boolean</CODE></FONT></TD>
415
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#isButtonPressed(int)">isButtonPressed</A></B>(int&nbsp;button)</CODE>
416
 
417
<BR>
418
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whether a given button is pressed or not.</TD>
419
</TR>
420
<TR BGCOLOR="white" CLASS="TableRowColor">
421
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
422
<CODE>&nbsp;boolean</CODE></FONT></TD>
423
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#isCursorCatched()">isCursorCatched</A></B>()</CODE>
424
 
425
<BR>
426
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
427
</TR>
428
<TR BGCOLOR="white" CLASS="TableRowColor">
429
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
430
<CODE>&nbsp;boolean</CODE></FONT></TD>
431
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#isKeyPressed(int)">isKeyPressed</A></B>(int&nbsp;key)</CODE>
432
 
433
<BR>
434
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns whether the key is pressed.</TD>
435
</TR>
436
<TR BGCOLOR="white" CLASS="TableRowColor">
437
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
438
<CODE>&nbsp;boolean</CODE></FONT></TD>
439
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#isPeripheralAvailable(com.badlogic.gdx.Input.Peripheral)">isPeripheralAvailable</A></B>(<A HREF="../../../../com/badlogic/gdx/Input.Peripheral.html" title="enum in com.badlogic.gdx">Input.Peripheral</A>&nbsp;peripheral)</CODE>
440
 
441
<BR>
442
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Queries whether a <A HREF="../../../../com/badlogic/gdx/Input.Peripheral.html" title="enum in com.badlogic.gdx"><CODE>Input.Peripheral</CODE></A> is currently available.</TD>
443
</TR>
444
<TR BGCOLOR="white" CLASS="TableRowColor">
445
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
446
<CODE>&nbsp;boolean</CODE></FONT></TD>
447
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#isTouched()">isTouched</A></B>()</CODE>
448
 
449
<BR>
450
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
451
</TR>
452
<TR BGCOLOR="white" CLASS="TableRowColor">
453
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
454
<CODE>&nbsp;boolean</CODE></FONT></TD>
455
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#isTouched(int)">isTouched</A></B>(int&nbsp;pointer)</CODE>
456
 
457
<BR>
458
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whether the screen is currently touched by the pointer with the given index.</TD>
459
</TR>
460
<TR BGCOLOR="white" CLASS="TableRowColor">
461
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
462
<CODE>&nbsp;boolean</CODE></FONT></TD>
463
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#justTouched()">justTouched</A></B>()</CODE>
464
 
465
<BR>
466
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
467
</TR>
468
<TR BGCOLOR="white" CLASS="TableRowColor">
469
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
470
<CODE>&nbsp;void</CODE></FONT></TD>
471
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#run()">run</A></B>()</CODE>
472
 
473
<BR>
474
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
475
</TR>
476
<TR BGCOLOR="white" CLASS="TableRowColor">
477
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
478
<CODE>&nbsp;void</CODE></FONT></TD>
479
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#setCatchBackKey(boolean)">setCatchBackKey</A></B>(boolean&nbsp;catchBack)</CODE>
480
 
481
<BR>
482
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether the BACK button on Android should be caught.</TD>
483
</TR>
484
<TR BGCOLOR="white" CLASS="TableRowColor">
485
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
486
<CODE>&nbsp;void</CODE></FONT></TD>
487
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#setCatchMenuKey(boolean)">setCatchMenuKey</A></B>(boolean&nbsp;catchMenu)</CODE>
488
 
489
<BR>
490
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets whether the MENU button on Android should be caught.</TD>
491
</TR>
492
<TR BGCOLOR="white" CLASS="TableRowColor">
493
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
494
<CODE>&nbsp;void</CODE></FONT></TD>
495
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#setCursorCatched(boolean)">setCursorCatched</A></B>(boolean&nbsp;catched)</CODE>
496
 
497
<BR>
498
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Only viable on the desktop.</TD>
499
</TR>
500
<TR BGCOLOR="white" CLASS="TableRowColor">
501
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
502
<CODE>&nbsp;void</CODE></FONT></TD>
503
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#setCursorPosition(int, int)">setCursorPosition</A></B>(int&nbsp;x,
504
                  int&nbsp;y)</CODE>
505
 
506
<BR>
507
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Only viable on the desktop.</TD>
508
</TR>
509
<TR BGCOLOR="white" CLASS="TableRowColor">
510
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
511
<CODE>&nbsp;void</CODE></FONT></TD>
512
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#setInputProcessor(com.badlogic.gdx.InputProcessor)">setInputProcessor</A></B>(<A HREF="../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&nbsp;processor)</CODE>
513
 
514
<BR>
515
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the <A HREF="../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx"><CODE>InputProcessor</CODE></A> that will receive all touch and key input events.</TD>
516
</TR>
517
<TR BGCOLOR="white" CLASS="TableRowColor">
518
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
519
<CODE>&nbsp;void</CODE></FONT></TD>
520
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#setOnscreenKeyboardVisible(boolean)">setOnscreenKeyboardVisible</A></B>(boolean&nbsp;visible)</CODE>
521
 
522
<BR>
523
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the on-screen keyboard visible if available.</TD>
524
</TR>
525
<TR BGCOLOR="white" CLASS="TableRowColor">
526
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
527
<CODE>&nbsp;void</CODE></FONT></TD>
528
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#vibrate(int)">vibrate</A></B>(int&nbsp;milliseconds)</CODE>
529
 
530
<BR>
531
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vibrates for the given amount of time.</TD>
532
</TR>
533
<TR BGCOLOR="white" CLASS="TableRowColor">
534
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
535
<CODE>&nbsp;void</CODE></FONT></TD>
536
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/input/RemoteInput.html#vibrate(long[], int)">vibrate</A></B>(long[]&nbsp;pattern,
537
        int&nbsp;repeat)</CODE>
538
 
539
<BR>
540
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vibrate with a given pattern.</TD>
541
</TR>
542
</TABLE>
543
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
544
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
545
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
546
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
547
</TR>
548
<TR BGCOLOR="white" CLASS="TableRowColor">
549
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
550
</TR>
551
</TABLE>
552
&nbsp;
553
<P>
554
 
555
<!-- ============ FIELD DETAIL =========== -->
556
 
557
<A NAME="field_detail"><!-- --></A>
558
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
559
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
560
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
561
<B>Field Detail</B></FONT></TH>
562
</TR>
563
</TABLE>
564
 
565
<A NAME="DEFAULT_PORT"><!-- --></A><H3>
566
DEFAULT_PORT</H3>
567
<PRE>
568
public static int <B>DEFAULT_PORT</B></PRE>
569
<DL>
570
<DL>
571
</DL>
572
</DL>
573
<HR>
574
 
575
<A NAME="ips"><!-- --></A><H3>
576
ips</H3>
577
<PRE>
578
public final java.lang.String[] <B>ips</B></PRE>
579
<DL>
580
<DL>
581
</DL>
582
</DL>
583
 
584
<!-- ========= CONSTRUCTOR DETAIL ======== -->
585
 
586
<A NAME="constructor_detail"><!-- --></A>
587
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
588
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
589
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
590
<B>Constructor Detail</B></FONT></TH>
591
</TR>
592
</TABLE>
593
 
594
<A NAME="RemoteInput()"><!-- --></A><H3>
595
RemoteInput</H3>
596
<PRE>
597
public <B>RemoteInput</B>()</PRE>
598
<DL>
599
</DL>
600
<HR>
601
 
602
<A NAME="RemoteInput(int)"><!-- --></A><H3>
603
RemoteInput</H3>
604
<PRE>
605
public <B>RemoteInput</B>(int&nbsp;port)</PRE>
606
<DL>
607
</DL>
608
 
609
<!-- ============ METHOD DETAIL ========== -->
610
 
611
<A NAME="method_detail"><!-- --></A>
612
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
613
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
614
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
615
<B>Method Detail</B></FONT></TH>
616
</TR>
617
</TABLE>
618
 
619
<A NAME="run()"><!-- --></A><H3>
620
run</H3>
621
<PRE>
622
public void <B>run</B>()</PRE>
623
<DL>
624
<DD><DL>
625
<DT><B>Specified by:</B><DD><CODE>run</CODE> in interface <CODE>java.lang.Runnable</CODE></DL>
626
</DD>
627
<DD><DL>
628
</DL>
629
</DD>
630
</DL>
631
<HR>
632
 
633
<A NAME="getAccelerometerX()"><!-- --></A><H3>
634
getAccelerometerX</H3>
635
<PRE>
636
public float <B>getAccelerometerX</B>()</PRE>
637
<DL>
638
<DD><DL>
639
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getAccelerometerX()">getAccelerometerX</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
640
</DD>
641
<DD><DL>
642
 
643
<DT><B>Returns:</B><DD>The value of the accelerometer on its x-axis. ranges between [-10,10].</DL>
644
</DD>
645
</DL>
646
<HR>
647
 
648
<A NAME="getAccelerometerY()"><!-- --></A><H3>
649
getAccelerometerY</H3>
650
<PRE>
651
public float <B>getAccelerometerY</B>()</PRE>
652
<DL>
653
<DD><DL>
654
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getAccelerometerY()">getAccelerometerY</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
655
</DD>
656
<DD><DL>
657
 
658
<DT><B>Returns:</B><DD>The value of the accelerometer on its y-axis. ranges between [-10,10].</DL>
659
</DD>
660
</DL>
661
<HR>
662
 
663
<A NAME="getAccelerometerZ()"><!-- --></A><H3>
664
getAccelerometerZ</H3>
665
<PRE>
666
public float <B>getAccelerometerZ</B>()</PRE>
667
<DL>
668
<DD><DL>
669
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getAccelerometerZ()">getAccelerometerZ</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
670
</DD>
671
<DD><DL>
672
 
673
<DT><B>Returns:</B><DD>The value of the accelerometer on its y-axis. ranges between [-10,10].</DL>
674
</DD>
675
</DL>
676
<HR>
677
 
678
<A NAME="getX()"><!-- --></A><H3>
679
getX</H3>
680
<PRE>
681
public int <B>getX</B>()</PRE>
682
<DL>
683
<DD><DL>
684
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getX()">getX</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
685
</DD>
686
<DD><DL>
687
 
688
<DT><B>Returns:</B><DD>the last touch x coordinate for the first pointer in screen coordinates. The screen origin is the top left corner.</DL>
689
</DD>
690
</DL>
691
<HR>
692
 
693
<A NAME="getX(int)"><!-- --></A><H3>
694
getX</H3>
695
<PRE>
696
public int <B>getX</B>(int&nbsp;pointer)</PRE>
697
<DL>
698
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getX(int)">Input</A></CODE></B></DD>
699
<DD>Returns the x coordinate in screen coordinates of the given pointer. Pointers are indexed from 0 to n. The pointer id
700
 identifies the order in which the fingers went down on the screen, e.g. 0 is the first finger, 1 is the second and so on.
701
 When two fingers are touched down and the first one is lifted the second one keeps its index. If another finger is placed on
702
 the touch screen the first free index will be used.
703
<P>
704
<DD><DL>
705
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getX(int)">getX</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
706
</DD>
707
<DD><DL>
708
<DT><B>Parameters:</B><DD><CODE>pointer</CODE> - the pointer id.
709
<DT><B>Returns:</B><DD>the x coordinate</DL>
710
</DD>
711
</DL>
712
<HR>
713
 
714
<A NAME="getY()"><!-- --></A><H3>
715
getY</H3>
716
<PRE>
717
public int <B>getY</B>()</PRE>
718
<DL>
719
<DD><DL>
720
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getY()">getY</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
721
</DD>
722
<DD><DL>
723
 
724
<DT><B>Returns:</B><DD>the last touch y coordinate for the first pointer in screen coordinates. The screen origin is the top left corner.</DL>
725
</DD>
726
</DL>
727
<HR>
728
 
729
<A NAME="getY(int)"><!-- --></A><H3>
730
getY</H3>
731
<PRE>
732
public int <B>getY</B>(int&nbsp;pointer)</PRE>
733
<DL>
734
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getY(int)">Input</A></CODE></B></DD>
735
<DD>Returns the y coordinate in screen coordinates of the given pointer. Pointers are indexed from 0 to n. The pointer id
736
 identifies the order in which the fingers went down on the screen, e.g. 0 is the first finger, 1 is the second and so on.
737
 When two fingers are touched down and the first one is lifted the second one keeps its index. If another finger is placed on
738
 the touch screen the first free index will be used.
739
<P>
740
<DD><DL>
741
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getY(int)">getY</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
742
</DD>
743
<DD><DL>
744
<DT><B>Parameters:</B><DD><CODE>pointer</CODE> - the pointer id.
745
<DT><B>Returns:</B><DD>the y coordinate</DL>
746
</DD>
747
</DL>
748
<HR>
749
 
750
<A NAME="isTouched()"><!-- --></A><H3>
751
isTouched</H3>
752
<PRE>
753
public boolean <B>isTouched</B>()</PRE>
754
<DL>
755
<DD><DL>
756
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#isTouched()">isTouched</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
757
</DD>
758
<DD><DL>
759
 
760
<DT><B>Returns:</B><DD>whether the screen is currently touched.</DL>
761
</DD>
762
</DL>
763
<HR>
764
 
765
<A NAME="justTouched()"><!-- --></A><H3>
766
justTouched</H3>
767
<PRE>
768
public boolean <B>justTouched</B>()</PRE>
769
<DL>
770
<DD><DL>
771
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#justTouched()">justTouched</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
772
</DD>
773
<DD><DL>
774
 
775
<DT><B>Returns:</B><DD>whether a new touch down event just occured.</DL>
776
</DD>
777
</DL>
778
<HR>
779
 
780
<A NAME="isTouched(int)"><!-- --></A><H3>
781
isTouched</H3>
782
<PRE>
783
public boolean <B>isTouched</B>(int&nbsp;pointer)</PRE>
784
<DL>
785
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#isTouched(int)">Input</A></CODE></B></DD>
786
<DD>Whether the screen is currently touched by the pointer with the given index. Pointers are indexed from 0 to n. The pointer
787
 id identifies the order in which the fingers went down on the screen, e.g. 0 is the first finger, 1 is the second and so on.
788
 When two fingers are touched down and the first one is lifted the second one keeps its index. If another finger is placed on
789
 the touch screen the first free index will be used.
790
<P>
791
<DD><DL>
792
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#isTouched(int)">isTouched</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
793
</DD>
794
<DD><DL>
795
<DT><B>Parameters:</B><DD><CODE>pointer</CODE> - the pointer
796
<DT><B>Returns:</B><DD>whether the screen is touched by the pointer</DL>
797
</DD>
798
</DL>
799
<HR>
800
 
801
<A NAME="isButtonPressed(int)"><!-- --></A><H3>
802
isButtonPressed</H3>
803
<PRE>
804
public boolean <B>isButtonPressed</B>(int&nbsp;button)</PRE>
805
<DL>
806
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#isButtonPressed(int)">Input</A></CODE></B></DD>
807
<DD>Whether a given button is pressed or not. Button constants can be found in <A HREF="../../../../com/badlogic/gdx/Input.Buttons.html" title="class in com.badlogic.gdx"><CODE>Input.Buttons</CODE></A>. On Android only the Button#LEFT
808
 constant is meaningful.
809
<P>
810
<DD><DL>
811
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#isButtonPressed(int)">isButtonPressed</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
812
</DD>
813
<DD><DL>
814
<DT><B>Parameters:</B><DD><CODE>button</CODE> - the button to check.
815
<DT><B>Returns:</B><DD>whether the button is down or not.</DL>
816
</DD>
817
</DL>
818
<HR>
819
 
820
<A NAME="isKeyPressed(int)"><!-- --></A><H3>
821
isKeyPressed</H3>
822
<PRE>
823
public boolean <B>isKeyPressed</B>(int&nbsp;key)</PRE>
824
<DL>
825
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#isKeyPressed(int)">Input</A></CODE></B></DD>
826
<DD>Returns whether the key is pressed.
827
<P>
828
<DD><DL>
829
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#isKeyPressed(int)">isKeyPressed</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
830
</DD>
831
<DD><DL>
832
<DT><B>Parameters:</B><DD><CODE>key</CODE> - The key code as found in <A HREF="../../../../com/badlogic/gdx/Input.Keys.html" title="class in com.badlogic.gdx"><CODE>Input.Keys</CODE></A>.
833
<DT><B>Returns:</B><DD>true or false.</DL>
834
</DD>
835
</DL>
836
<HR>
837
 
838
<A NAME="getTextInput(com.badlogic.gdx.Input.TextInputListener, java.lang.String, java.lang.String)"><!-- --></A><H3>
839
getTextInput</H3>
840
<PRE>
841
public void <B>getTextInput</B>(<A HREF="../../../../com/badlogic/gdx/Input.TextInputListener.html" title="interface in com.badlogic.gdx">Input.TextInputListener</A>&nbsp;listener,
842
                         java.lang.String&nbsp;title,
843
                         java.lang.String&nbsp;text)</PRE>
844
<DL>
845
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getTextInput(com.badlogic.gdx.Input.TextInputListener, java.lang.String, java.lang.String)">Input</A></CODE></B></DD>
846
<DD>System dependent method to input a string of text. A dialog box will be created with the given title and the given text as a
847
 message for the user. Once the dialog has been closed the provided <A HREF="../../../../com/badlogic/gdx/Input.TextInputListener.html" title="interface in com.badlogic.gdx"><CODE>Input.TextInputListener</CODE></A> will be called on the rendering
848
 thread.
849
<P>
850
<DD><DL>
851
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getTextInput(com.badlogic.gdx.Input.TextInputListener, java.lang.String, java.lang.String)">getTextInput</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
852
</DD>
853
<DD><DL>
854
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - The TextInputListener.<DD><CODE>title</CODE> - The title of the text input dialog.<DD><CODE>text</CODE> - The message presented to the user.</DL>
855
</DD>
856
</DL>
857
<HR>
858
 
859
<A NAME="getPlaceholderTextInput(com.badlogic.gdx.Input.TextInputListener, java.lang.String, java.lang.String)"><!-- --></A><H3>
860
getPlaceholderTextInput</H3>
861
<PRE>
862
public void <B>getPlaceholderTextInput</B>(<A HREF="../../../../com/badlogic/gdx/Input.TextInputListener.html" title="interface in com.badlogic.gdx">Input.TextInputListener</A>&nbsp;listener,
863
                                    java.lang.String&nbsp;title,
864
                                    java.lang.String&nbsp;placeholder)</PRE>
865
<DL>
866
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getPlaceholderTextInput(com.badlogic.gdx.Input.TextInputListener, java.lang.String, java.lang.String)">Input</A></CODE></B></DD>
867
<DD>System dependent method to input a string of text. A dialog box will be created with the given title and the given text as a
868
 hint message for the user. Once the dialog has been closed the provided <A HREF="../../../../com/badlogic/gdx/Input.TextInputListener.html" title="interface in com.badlogic.gdx"><CODE>Input.TextInputListener</CODE></A> will be called on the
869
 rendering thread.
870
<P>
871
<DD><DL>
872
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getPlaceholderTextInput(com.badlogic.gdx.Input.TextInputListener, java.lang.String, java.lang.String)">getPlaceholderTextInput</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
873
</DD>
874
<DD><DL>
875
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - The TextInputListener.<DD><CODE>title</CODE> - The title of the text input dialog.<DD><CODE>placeholder</CODE> - The placeholder text presented to the user.</DL>
876
</DD>
877
</DL>
878
<HR>
879
 
880
<A NAME="setOnscreenKeyboardVisible(boolean)"><!-- --></A><H3>
881
setOnscreenKeyboardVisible</H3>
882
<PRE>
883
public void <B>setOnscreenKeyboardVisible</B>(boolean&nbsp;visible)</PRE>
884
<DL>
885
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setOnscreenKeyboardVisible(boolean)">Input</A></CODE></B></DD>
886
<DD>Sets the on-screen keyboard visible if available.
887
<P>
888
<DD><DL>
889
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setOnscreenKeyboardVisible(boolean)">setOnscreenKeyboardVisible</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
890
</DD>
891
<DD><DL>
892
<DT><B>Parameters:</B><DD><CODE>visible</CODE> - visible or not</DL>
893
</DD>
894
</DL>
895
<HR>
896
 
897
<A NAME="vibrate(int)"><!-- --></A><H3>
898
vibrate</H3>
899
<PRE>
900
public void <B>vibrate</B>(int&nbsp;milliseconds)</PRE>
901
<DL>
902
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#vibrate(int)">Input</A></CODE></B></DD>
903
<DD>Vibrates for the given amount of time. Note that you'll need the permission
904
 <code> <uses-permission android:name="android.permission.VIBRATE" /></code> in your manifest file in order for this to work.
905
<P>
906
<DD><DL>
907
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#vibrate(int)">vibrate</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
908
</DD>
909
<DD><DL>
910
<DT><B>Parameters:</B><DD><CODE>milliseconds</CODE> - the number of milliseconds to vibrate.</DL>
911
</DD>
912
</DL>
913
<HR>
914
 
915
<A NAME="vibrate(long[], int)"><!-- --></A><H3>
916
vibrate</H3>
917
<PRE>
918
public void <B>vibrate</B>(long[]&nbsp;pattern,
919
                    int&nbsp;repeat)</PRE>
920
<DL>
921
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#vibrate(long[], int)">Input</A></CODE></B></DD>
922
<DD>Vibrate with a given pattern. Pass in an array of ints that are the times at which to turn on or off the vibrator. The first
923
 one is how long to wait before turning it on, and then after that it alternates. If you want to repeat, pass the index into
924
 the pattern at which to start the repeat.
925
<P>
926
<DD><DL>
927
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#vibrate(long[], int)">vibrate</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
928
</DD>
929
<DD><DL>
930
<DT><B>Parameters:</B><DD><CODE>pattern</CODE> - an array of longs of times to turn the vibrator on or off.<DD><CODE>repeat</CODE> - the index into pattern at which to repeat, or -1 if you don't want to repeat.</DL>
931
</DD>
932
</DL>
933
<HR>
934
 
935
<A NAME="cancelVibrate()"><!-- --></A><H3>
936
cancelVibrate</H3>
937
<PRE>
938
public void <B>cancelVibrate</B>()</PRE>
939
<DL>
940
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#cancelVibrate()">Input</A></CODE></B></DD>
941
<DD>Stops the vibrator
942
<P>
943
<DD><DL>
944
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#cancelVibrate()">cancelVibrate</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
945
</DD>
946
<DD><DL>
947
</DL>
948
</DD>
949
</DL>
950
<HR>
951
 
952
<A NAME="getAzimuth()"><!-- --></A><H3>
953
getAzimuth</H3>
954
<PRE>
955
public float <B>getAzimuth</B>()</PRE>
956
<DL>
957
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getAzimuth()">Input</A></CODE></B></DD>
958
<DD>The azimuth is the angle of the device's orientation around the z-axis. The positive z-axis points towards the earths
959
 center.
960
<P>
961
<DD><DL>
962
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getAzimuth()">getAzimuth</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
963
</DD>
964
<DD><DL>
965
 
966
<DT><B>Returns:</B><DD>the azimuth in degrees<DT><B>See Also:</B><DD><a
967
      href="http://developer.android.com/reference/android/hardware/SensorManager.html#getRotationMatrix(float[], float[], float[], float[])">http://developer.android.com/reference/android/hardware/SensorManager.html#getRotationMatrix(float[], float[], float[], float[])</a></DL>
968
</DD>
969
</DL>
970
<HR>
971
 
972
<A NAME="getPitch()"><!-- --></A><H3>
973
getPitch</H3>
974
<PRE>
975
public float <B>getPitch</B>()</PRE>
976
<DL>
977
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getPitch()">Input</A></CODE></B></DD>
978
<DD>The pitch is the angle of the device's orientation around the x-axis. The positive x-axis roughly points to the west and is
979
 orthogonal to the z- and y-axis.
980
<P>
981
<DD><DL>
982
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getPitch()">getPitch</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
983
</DD>
984
<DD><DL>
985
 
986
<DT><B>Returns:</B><DD>the pitch in degrees<DT><B>See Also:</B><DD><a
987
      href="http://developer.android.com/reference/android/hardware/SensorManager.html#getRotationMatrix(float[], float[], float[], float[])">http://developer.android.com/reference/android/hardware/SensorManager.html#getRotationMatrix(float[], float[], float[], float[])</a></DL>
988
</DD>
989
</DL>
990
<HR>
991
 
992
<A NAME="getRoll()"><!-- --></A><H3>
993
getRoll</H3>
994
<PRE>
995
public float <B>getRoll</B>()</PRE>
996
<DL>
997
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getRoll()">Input</A></CODE></B></DD>
998
<DD>The roll is the angle of the device's orientation around the y-axis. The positive y-axis points to the magnetic north pole
999
 of the earth.
1000
<P>
1001
<DD><DL>
1002
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getRoll()">getRoll</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1003
</DD>
1004
<DD><DL>
1005
 
1006
<DT><B>Returns:</B><DD>the roll in degrees<DT><B>See Also:</B><DD><a
1007
      href="http://developer.android.com/reference/android/hardware/SensorManager.html#getRotationMatrix(float[], float[], float[], float[])">http://developer.android.com/reference/android/hardware/SensorManager.html#getRotationMatrix(float[], float[], float[], float[])</a></DL>
1008
</DD>
1009
</DL>
1010
<HR>
1011
 
1012
<A NAME="setCatchBackKey(boolean)"><!-- --></A><H3>
1013
setCatchBackKey</H3>
1014
<PRE>
1015
public void <B>setCatchBackKey</B>(boolean&nbsp;catchBack)</PRE>
1016
<DL>
1017
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setCatchBackKey(boolean)">Input</A></CODE></B></DD>
1018
<DD>Sets whether the BACK button on Android should be caught. This will prevent the app from being paused. Will have no effect
1019
 on the desktop.
1020
<P>
1021
<DD><DL>
1022
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setCatchBackKey(boolean)">setCatchBackKey</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1023
</DD>
1024
<DD><DL>
1025
<DT><B>Parameters:</B><DD><CODE>catchBack</CODE> - whether to catch the back button</DL>
1026
</DD>
1027
</DL>
1028
<HR>
1029
 
1030
<A NAME="setInputProcessor(com.badlogic.gdx.InputProcessor)"><!-- --></A><H3>
1031
setInputProcessor</H3>
1032
<PRE>
1033
public void <B>setInputProcessor</B>(<A HREF="../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A>&nbsp;processor)</PRE>
1034
<DL>
1035
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setInputProcessor(com.badlogic.gdx.InputProcessor)">Input</A></CODE></B></DD>
1036
<DD>Sets the <A HREF="../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx"><CODE>InputProcessor</CODE></A> that will receive all touch and key input events. It will be called before the
1037
 <A HREF="../../../../com/badlogic/gdx/ApplicationListener.html#render()"><CODE>ApplicationListener.render()</CODE></A> method each frame.
1038
<P>
1039
<DD><DL>
1040
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setInputProcessor(com.badlogic.gdx.InputProcessor)">setInputProcessor</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1041
</DD>
1042
<DD><DL>
1043
<DT><B>Parameters:</B><DD><CODE>processor</CODE> - the InputProcessor</DL>
1044
</DD>
1045
</DL>
1046
<HR>
1047
 
1048
<A NAME="getInputProcessor()"><!-- --></A><H3>
1049
getInputProcessor</H3>
1050
<PRE>
1051
public <A HREF="../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx">InputProcessor</A> <B>getInputProcessor</B>()</PRE>
1052
<DL>
1053
<DD><DL>
1054
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getInputProcessor()">getInputProcessor</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1055
</DD>
1056
<DD><DL>
1057
 
1058
<DT><B>Returns:</B><DD>the currently set <A HREF="../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx"><CODE>InputProcessor</CODE></A> or null.</DL>
1059
</DD>
1060
</DL>
1061
<HR>
1062
 
1063
<A NAME="getIPs()"><!-- --></A><H3>
1064
getIPs</H3>
1065
<PRE>
1066
public java.lang.String[] <B>getIPs</B>()</PRE>
1067
<DL>
1068
<DD><DL>
1069
</DL>
1070
</DD>
1071
<DD><DL>
1072
 
1073
<DT><B>Returns:</B><DD>the IP addresses <A HREF="../../../../com/badlogic/gdx/input/RemoteSender.html" title="class in com.badlogic.gdx.input"><CODE>RemoteSender</CODE></A> or gdx-remote should connect to. Most likely the LAN addresses if behind a NAT.</DL>
1074
</DD>
1075
</DL>
1076
<HR>
1077
 
1078
<A NAME="isPeripheralAvailable(com.badlogic.gdx.Input.Peripheral)"><!-- --></A><H3>
1079
isPeripheralAvailable</H3>
1080
<PRE>
1081
public boolean <B>isPeripheralAvailable</B>(<A HREF="../../../../com/badlogic/gdx/Input.Peripheral.html" title="enum in com.badlogic.gdx">Input.Peripheral</A>&nbsp;peripheral)</PRE>
1082
<DL>
1083
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#isPeripheralAvailable(com.badlogic.gdx.Input.Peripheral)">Input</A></CODE></B></DD>
1084
<DD>Queries whether a <A HREF="../../../../com/badlogic/gdx/Input.Peripheral.html" title="enum in com.badlogic.gdx"><CODE>Input.Peripheral</CODE></A> is currently available. In case of Android and the <A HREF="../../../../com/badlogic/gdx/Input.Peripheral.html#HardwareKeyboard"><CODE>Input.Peripheral.HardwareKeyboard</CODE></A>
1085
 this returns the whether the keyboard is currently slid out or not.
1086
<P>
1087
<DD><DL>
1088
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#isPeripheralAvailable(com.badlogic.gdx.Input.Peripheral)">isPeripheralAvailable</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1089
</DD>
1090
<DD><DL>
1091
<DT><B>Parameters:</B><DD><CODE>peripheral</CODE> - the <A HREF="../../../../com/badlogic/gdx/Input.Peripheral.html" title="enum in com.badlogic.gdx"><CODE>Input.Peripheral</CODE></A>
1092
<DT><B>Returns:</B><DD>whether the peripheral is available or not.</DL>
1093
</DD>
1094
</DL>
1095
<HR>
1096
 
1097
<A NAME="getRotation()"><!-- --></A><H3>
1098
getRotation</H3>
1099
<PRE>
1100
public int <B>getRotation</B>()</PRE>
1101
<DL>
1102
<DD><DL>
1103
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getRotation()">getRotation</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1104
</DD>
1105
<DD><DL>
1106
 
1107
<DT><B>Returns:</B><DD>the rotation of the device with respect to its native orientation.</DL>
1108
</DD>
1109
</DL>
1110
<HR>
1111
 
1112
<A NAME="getNativeOrientation()"><!-- --></A><H3>
1113
getNativeOrientation</H3>
1114
<PRE>
1115
public <A HREF="../../../../com/badlogic/gdx/Input.Orientation.html" title="enum in com.badlogic.gdx">Input.Orientation</A> <B>getNativeOrientation</B>()</PRE>
1116
<DL>
1117
<DD><DL>
1118
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getNativeOrientation()">getNativeOrientation</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1119
</DD>
1120
<DD><DL>
1121
 
1122
<DT><B>Returns:</B><DD>the native orientation of the device.</DL>
1123
</DD>
1124
</DL>
1125
<HR>
1126
 
1127
<A NAME="setCursorCatched(boolean)"><!-- --></A><H3>
1128
setCursorCatched</H3>
1129
<PRE>
1130
public void <B>setCursorCatched</B>(boolean&nbsp;catched)</PRE>
1131
<DL>
1132
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setCursorCatched(boolean)">Input</A></CODE></B></DD>
1133
<DD>Only viable on the desktop. Will confine the mouse cursor location to the window and hide the mouse cursor.
1134
<P>
1135
<DD><DL>
1136
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setCursorCatched(boolean)">setCursorCatched</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1137
</DD>
1138
<DD><DL>
1139
<DT><B>Parameters:</B><DD><CODE>catched</CODE> - whether to catch or not to catch the mouse cursor</DL>
1140
</DD>
1141
</DL>
1142
<HR>
1143
 
1144
<A NAME="isCursorCatched()"><!-- --></A><H3>
1145
isCursorCatched</H3>
1146
<PRE>
1147
public boolean <B>isCursorCatched</B>()</PRE>
1148
<DL>
1149
<DD><DL>
1150
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#isCursorCatched()">isCursorCatched</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1151
</DD>
1152
<DD><DL>
1153
 
1154
<DT><B>Returns:</B><DD>whether the mouse cursor is catched.</DL>
1155
</DD>
1156
</DL>
1157
<HR>
1158
 
1159
<A NAME="getDeltaX()"><!-- --></A><H3>
1160
getDeltaX</H3>
1161
<PRE>
1162
public int <B>getDeltaX</B>()</PRE>
1163
<DL>
1164
<DD><DL>
1165
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getDeltaX()">getDeltaX</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1166
</DD>
1167
<DD><DL>
1168
 
1169
<DT><B>Returns:</B><DD>the different between the current pointer location and the last pointer location on the x-axis.</DL>
1170
</DD>
1171
</DL>
1172
<HR>
1173
 
1174
<A NAME="getDeltaX(int)"><!-- --></A><H3>
1175
getDeltaX</H3>
1176
<PRE>
1177
public int <B>getDeltaX</B>(int&nbsp;pointer)</PRE>
1178
<DL>
1179
<DD><DL>
1180
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getDeltaX(int)">getDeltaX</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1181
</DD>
1182
<DD><DL>
1183
 
1184
<DT><B>Returns:</B><DD>the different between the current pointer location and the last pointer location on the x-axis.</DL>
1185
</DD>
1186
</DL>
1187
<HR>
1188
 
1189
<A NAME="getDeltaY()"><!-- --></A><H3>
1190
getDeltaY</H3>
1191
<PRE>
1192
public int <B>getDeltaY</B>()</PRE>
1193
<DL>
1194
<DD><DL>
1195
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getDeltaY()">getDeltaY</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1196
</DD>
1197
<DD><DL>
1198
 
1199
<DT><B>Returns:</B><DD>the different between the current pointer location and the last pointer location on the y-axis.</DL>
1200
</DD>
1201
</DL>
1202
<HR>
1203
 
1204
<A NAME="getDeltaY(int)"><!-- --></A><H3>
1205
getDeltaY</H3>
1206
<PRE>
1207
public int <B>getDeltaY</B>(int&nbsp;pointer)</PRE>
1208
<DL>
1209
<DD><DL>
1210
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getDeltaY(int)">getDeltaY</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1211
</DD>
1212
<DD><DL>
1213
 
1214
<DT><B>Returns:</B><DD>the different between the current pointer location and the last pointer location on the y-axis.</DL>
1215
</DD>
1216
</DL>
1217
<HR>
1218
 
1219
<A NAME="setCursorPosition(int, int)"><!-- --></A><H3>
1220
setCursorPosition</H3>
1221
<PRE>
1222
public void <B>setCursorPosition</B>(int&nbsp;x,
1223
                              int&nbsp;y)</PRE>
1224
<DL>
1225
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setCursorPosition(int, int)">Input</A></CODE></B></DD>
1226
<DD>Only viable on the desktop. Will set the mouse cursor location to the given window coordinates (origin top-left corner).
1227
<P>
1228
<DD><DL>
1229
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setCursorPosition(int, int)">setCursorPosition</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1230
</DD>
1231
<DD><DL>
1232
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the x-position<DD><CODE>y</CODE> - the y-position</DL>
1233
</DD>
1234
</DL>
1235
<HR>
1236
 
1237
<A NAME="setCatchMenuKey(boolean)"><!-- --></A><H3>
1238
setCatchMenuKey</H3>
1239
<PRE>
1240
public void <B>setCatchMenuKey</B>(boolean&nbsp;catchMenu)</PRE>
1241
<DL>
1242
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setCatchMenuKey(boolean)">Input</A></CODE></B></DD>
1243
<DD>Sets whether the MENU button on Android should be caught. This will prevent the onscreen keyboard to show up. Will have no
1244
 effect on the desktop.
1245
<P>
1246
<DD><DL>
1247
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#setCatchMenuKey(boolean)">setCatchMenuKey</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1248
</DD>
1249
<DD><DL>
1250
<DT><B>Parameters:</B><DD><CODE>catchMenu</CODE> - whether to catch the back button</DL>
1251
</DD>
1252
</DL>
1253
<HR>
1254
 
1255
<A NAME="getCurrentEventTime()"><!-- --></A><H3>
1256
getCurrentEventTime</H3>
1257
<PRE>
1258
public long <B>getCurrentEventTime</B>()</PRE>
1259
<DL>
1260
<DD><DL>
1261
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getCurrentEventTime()">getCurrentEventTime</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1262
</DD>
1263
<DD><DL>
1264
 
1265
<DT><B>Returns:</B><DD>the time of the event currently reported to the <A HREF="../../../../com/badlogic/gdx/InputProcessor.html" title="interface in com.badlogic.gdx"><CODE>InputProcessor</CODE></A>.</DL>
1266
</DD>
1267
</DL>
1268
<HR>
1269
 
1270
<A NAME="getRotationMatrix(float[])"><!-- --></A><H3>
1271
getRotationMatrix</H3>
1272
<PRE>
1273
public void <B>getRotationMatrix</B>(float[]&nbsp;matrix)</PRE>
1274
<DL>
1275
<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getRotationMatrix(float[])">Input</A></CODE></B></DD>
1276
<DD>Returns the rotation matrix describing the devices rotation as per <a href=
1277
 "http://developer.android.com/reference/android/hardware/SensorManager.html#getRotationMatrix(float[], float[], float[], float[])"
1278
 >SensorManager#getRotationMatrix(float[], float[], float[], float[])</a>. Does not manipulate the matrix if the platform
1279
 does not have an accelerometer.
1280
<P>
1281
<DD><DL>
1282
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/Input.html#getRotationMatrix(float[])">getRotationMatrix</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/Input.html" title="interface in com.badlogic.gdx">Input</A></CODE></DL>
1283
</DD>
1284
<DD><DL>
1285
</DL>
1286
</DD>
1287
</DL>
1288
<!-- ========= END OF CLASS DATA ========= -->
1289
<HR>
1290
 
1291
 
1292
<!-- ======= START OF BOTTOM NAVBAR ====== -->
1293
<A NAME="navbar_bottom"><!-- --></A>
1294
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
1295
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
1296
<TR>
1297
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
1298
<A NAME="navbar_bottom_firstrow"><!-- --></A>
1299
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
1300
  <TR ALIGN="center" VALIGN="top">
1301
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
1302
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
1303
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
1304
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/RemoteInput.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
1305
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
1306
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
1307
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
1308
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
1309
  </TR>
1310
</TABLE>
1311
</TD>
1312
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
1313
libgdx API</EM>
1314
</TD>
1315
</TR>
1316
 
1317
<TR>
1318
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1319
&nbsp;<A HREF="../../../../com/badlogic/gdx/input/GestureDetector.GestureListener.html" title="interface in com.badlogic.gdx.input"><B>PREV CLASS</B></A>&nbsp;
1320
&nbsp;<A HREF="../../../../com/badlogic/gdx/input/RemoteSender.html" title="class in com.badlogic.gdx.input"><B>NEXT CLASS</B></A></FONT></TD>
1321
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
1322
  <A HREF="../../../../index.html?com/badlogic/gdx/input/RemoteInput.html" target="_top"><B>FRAMES</B></A>  &nbsp;
1323
&nbsp;<A HREF="RemoteInput.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
1324
&nbsp;<SCRIPT type="text/javascript">
1325
  <!--
1326
  if(window==top) {
1327
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
1328
  }
1329
  //-->
1330
</SCRIPT>
1331
<NOSCRIPT>
1332
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
1333
</NOSCRIPT>
1334
 
1335
 
1336
</FONT></TD>
1337
</TR>
1338
<TR>
1339
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1340
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
1341
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
1342
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
1343
</TR>
1344
</TABLE>
1345
<A NAME="skip-navbar_bottom"></A>
1346
<!-- ======== END OF BOTTOM NAVBAR ======= -->
1347
 
1348
<HR>
1349
 
1350
                                <div style="font-size:9pt"><i>
1351
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
1352
                                </i></div>
1353
 
1354
</BODY>
1355
</HTML>