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