UNPKG

54.8 kBHTMLView Raw
1<!DOCTYPE html>
2
3<html lang="en">
4<head>
5 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width">
7 <title>CrossBrowdy API documentation Namespace: WII_U</title>
8
9 <!--[if lt IE 9]>
10 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11 <![endif]-->
12 <link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
13
14 <link type="text/css" rel="stylesheet" href="styles/site.cosmo.css">
15
16</head>
17
18<body style="min-width:800px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
19
20<div class="navbar navbar-default navbar-fixed-top ">
21<div class="container">
22 <div class="navbar-header">
23 <a class="navbar-brand" href="index.html">CrossBrowdy API documentation</a>
24 <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
25 <span class="icon-bar"></span>
26 <span class="icon-bar"></span>
27 <span class="icon-bar"></span>
28 </button>
29 </div>
30 <div class="navbar-collapse collapse" id="topNavigation">
31 <ul class="nav navbar-nav">
32
33 <li class="dropdown">
34 <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a>
35 <ul class="dropdown-menu inline">
36 <li><a href="CB_Arrays.html">CB_Arrays</a></li><li><a href="CB_AudioDetector.html">CB_AudioDetector</a></li><li><a href="CB_baseSymbols.html">CB_baseSymbols</a></li><li><a href="CB_Client.html">CB_Client</a></li><li><a href="CB_Collisions.html">CB_Collisions</a></li><li><a href="CB_Configuration.html">CB_Configuration</a></li><li><a href="CB_Configuration.CrossBase.html">CB_Configuration.CrossBase</a></li><li><a href="CB_Configuration.CrossBrowdy.html">CB_Configuration.CrossBrowdy</a></li><li><a href="CB_Controllers.html">CB_Controllers</a></li><li><a href="CB_Controllers_Proprietary.html">CB_Controllers_Proprietary</a></li><li><a href="CB_Controllers_Proprietary.WII.html">CB_Controllers_Proprietary.WII</a></li><li><a href="CB_Controllers_Proprietary.WII_U.html">CB_Controllers_Proprietary.WII_U</a></li><li><a href="CB_Device.html">CB_Device</a></li><li><a href="CB_Device.AmbientLight.html">CB_Device.AmbientLight</a></li><li><a href="CB_Device.Battery.html">CB_Device.Battery</a></li><li><a href="CB_Device.Location.html">CB_Device.Location</a></li><li><a href="CB_Device.Motion.html">CB_Device.Motion</a></li><li><a href="CB_Device.Orientation.html">CB_Device.Orientation</a></li><li><a href="CB_Device.Proximity.html">CB_Device.Proximity</a></li><li><a href="CB_Device.Vibration.html">CB_Device.Vibration</a></li><li><a href="CB_Elements.html">CB_Elements</a></li><li><a href="CB_Events.html">CB_Events</a></li><li><a href="CB_Keyboard.html">CB_Keyboard</a></li><li><a href="CB_Keyboard.chars.html">CB_Keyboard.chars</a></li><li><a href="CB_Keyboard.extended.html">CB_Keyboard.extended</a></li><li><a href="CB_Keyboard.keys.html">CB_Keyboard.keys</a></li><li><a href="CB_Modules.html">CB_Modules</a></li><li><a href="CB_Mouse.html">CB_Mouse</a></li><li><a href="CB_Mouse.CursorImage.html">CB_Mouse.CursorImage</a></li><li><a href="CB_Net.html">CB_Net</a></li><li><a href="CB_Net.Fetch.html">CB_Net.Fetch</a></li><li><a href="CB_Net.REST.html">CB_Net.REST</a></li><li><a href="CB_Net.Sockets.html">CB_Net.Sockets</a></li><li><a href="CB_Net.Sockets.SockJS.html">CB_Net.Sockets.SockJS</a></li><li><a href="CB_Net.XHR.html">CB_Net.XHR</a></li><li><a href="CB_Pointer.html">CB_Pointer</a></li><li><a href="CB_Screen.html">CB_Screen</a></li><li><a href="CB_Speaker.html">CB_Speaker</a></li><li><a href="CB_Touch.html">CB_Touch</a></li>
37 </ul>
38 </li>
39
40 <li class="dropdown">
41 <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
42 <ul class="dropdown-menu inline">
43 <li><a href="CB_AudioFile.html">CB_AudioFile</a></li><li><a href="CB_AudioFile_API.AAPI.html">CB_AudioFile_API.AAPI</a></li><li><a href="CB_AudioFile_API.ACMP.html">CB_AudioFile_API.ACMP</a></li><li><a href="CB_AudioFile_API.SM2.html">CB_AudioFile_API.SM2</a></li><li><a href="CB_AudioFile_API.WAAPI.html">CB_AudioFile_API.WAAPI</a></li><li><a href="CB_AudioFileCache.html">CB_AudioFileCache</a></li><li><a href="CB_AudioFileSprites.html">CB_AudioFileSprites</a></li><li><a href="CB_AudioFileSpritesPool.html">CB_AudioFileSpritesPool</a></li><li><a href="CB_Canvas.html">CB_Canvas</a></li><li><a href="CB_GraphicSprites.html">CB_GraphicSprites</a></li><li><a href="CB_GraphicSpritesScene.html">CB_GraphicSpritesScene</a></li>
44 </ul>
45 </li>
46
47 <li class="dropdown">
48 <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
49 <ul class="dropdown-menu inline">
50 <li><a href="global.html#CB_addCredits">CB_addCredits</a></li><li><a href="global.html#CB_BASE_NAME">CB_BASE_NAME</a></li><li><a href="global.html#CB_baseToBase">CB_baseToBase</a></li><li><a href="global.html#CB_baseToInt">CB_baseToInt</a></li><li><a href="global.html#CB_br2nl">CB_br2nl</a></li><li><a href="global.html#CB_brToNl">CB_brToNl</a></li><li><a href="global.html#CB_combineArraysOrObjects">CB_combineArraysOrObjects</a></li><li><a href="global.html#CB_combineAutomatically">CB_combineAutomatically</a></li><li><a href="global.html#CB_combineJSON">CB_combineJSON</a></li><li><a href="global.html#CB_combineURIParameters">CB_combineURIParameters</a></li><li><a href="global.html#CB_combineURLParameters">CB_combineURLParameters</a></li><li><a href="global.html#CB_console">CB_console</a></li><li><a href="global.html#CB_copyObject">CB_copyObject</a></li><li><a href="global.html#CB_countDecimalDigits">CB_countDecimalDigits</a></li><li><a href="global.html#CB_countDecimalPart">CB_countDecimalPart</a></li><li><a href="global.html#CB_countDecimals">CB_countDecimals</a></li><li><a href="global.html#CB_countIntegerDigits">CB_countIntegerDigits</a></li><li><a href="global.html#CB_countIntegerPart">CB_countIntegerPart</a></li><li><a href="global.html#CB_credits">CB_credits</a></li><li><a href="global.html#CB_CREDITS_DEFAULT">CB_CREDITS_DEFAULT</a></li><li><a href="global.html#CB_forceString">CB_forceString</a></li><li><a href="global.html#CB_forEach">CB_forEach</a></li><li><a href="global.html#CB_getBase64StringObject">CB_getBase64StringObject</a></li><li><a href="global.html#CB_getCookie">CB_getCookie</a></li><li><a href="global.html#CB_getDatum">CB_getDatum</a></li><li><a href="global.html#CB_getJSONPropertyValue">CB_getJSONPropertyValue</a></li><li><a href="global.html#CB_getLZStringObject">CB_getLZStringObject</a></li><li><a href="global.html#CB_getValueIndex">CB_getValueIndex</a></li><li><a href="global.html#CB_getValuePath">CB_getValuePath</a></li><li><a href="global.html#CB_includeJSFile">CB_includeJSFile</a></li><li><a href="global.html#CB_indexOf">CB_indexOf</a></li><li><a href="global.html#CB_init">CB_init</a></li><li><a href="global.html#CB_intToBase">CB_intToBase</a></li><li><a href="global.html#CB_isArray">CB_isArray</a></li><li><a href="global.html#CB_isEmail">CB_isEmail</a></li><li><a href="global.html#CB_isFileLocal">CB_isFileLocal</a></li><li><a href="global.html#CB_isString">CB_isString</a></li><li><a href="global.html#CB_lastIndexOf">CB_lastIndexOf</a></li><li><a href="global.html#CB_ltrim">CB_ltrim</a></li><li><a href="global.html#CB_NAME">CB_NAME</a></li><li><a href="global.html#CB_nl2br">CB_nl2br</a></li><li><a href="global.html#CB_nlToBr">CB_nlToBr</a></li><li><a href="global.html#CB_numberFormat">CB_numberFormat</a></li><li><a href="global.html#CB_numberOfDecimalDigits">CB_numberOfDecimalDigits</a></li><li><a href="global.html#CB_numberOfDecimals">CB_numberOfDecimals</a></li><li><a href="global.html#CB_numberOfIntegerDigits">CB_numberOfIntegerDigits</a></li><li><a href="global.html#CB_OPTIONS">CB_OPTIONS</a></li><li><a href="global.html#CB_parseJSON">CB_parseJSON</a></li><li><a href="global.html#CB_parseString">CB_parseString</a></li><li><a href="global.html#CB_regularExpressionString">CB_regularExpressionString</a></li><li><a href="global.html#CB_renderString">CB_renderString</a></li><li><a href="global.html#CB_replaceAll">CB_replaceAll</a></li><li><a href="global.html#CB_rtrim">CB_rtrim</a></li><li><a href="global.html#CB_scriptPath">CB_scriptPath</a></li><li><a href="global.html#CB_scriptPathCalculate">CB_scriptPathCalculate</a></li><li><a href="global.html#CB_setCookie">CB_setCookie</a></li><li><a href="global.html#CB_setDatum">CB_setDatum</a></li><li><a href="global.html#CB_sizeof">CB_sizeof</a></li><li><a href="global.html#CB_sizeOf">CB_sizeOf</a></li><li><a href="global.html#CB_stringifyJSON">CB_stringifyJSON</a></li><li><a href="global.html#CB_symmetricCall">CB_symmetricCall</a></li><li><a href="global.html#CB_symmetricCallClear">CB_symmetricCallClear</a></li><li><a href="global.html#CB_this">CB_this</a></li><li><a href="global.html#CB_trim">CB_trim</a></li><li><a href="global.html#CB_VERSION">CB_VERSION</a></li>
51 </ul>
52 </li>
53
54 </ul>
55
56 <div class="col-sm-3 col-md-3">
57 <form class="navbar-form" role="search">
58 <div class="input-group">
59 <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
60 <div class="input-group-btn">
61 <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
62 </div>
63 </div>
64 </form>
65 </div>
66
67 </div>
68
69</div>
70</div>
71
72
73<div class="container" id="toc-content" style="width:100%;">
74<div class="row" style="width:100%;">
75
76
77 <div class="col-md-8" style="width:85%;">
78
79 <div id="main">
80
81
82
83 <h1 class="page-title">Namespace: WII_U</h1>
84
85<section>
86
87<header>
88
89 <h2>
90 <span class="ancestors"><a href="CB_Controllers_Proprietary.html">CB_Controllers_Proprietary</a>.</span>
91
92 WII_U
93 </h2>
94
95
96</header>
97
98
99<article>
100 <div class="container-overview">
101
102
103 <div class="description"><p>Static class to manage the Nintendo Wii U gamepad and remotes. It will return itself if it is tried to be instantiated. NOTE: This class is still under development.</p></div>
104
105
106
107<dl class="details">
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
138 <dd class="tag-source">
139 <ul class="dummy">
140 <li>
141 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html">CrossBase/input/controllers/CB_Controllers_Proprietary_WII_U.js</a>,
142 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html#sunlight-1-line-7">line 7</a>
143 </li>
144 </ul>
145 </dd>
146
147
148
149
150
151
152
153 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
154 <dd class="tag-todo">
155 <ul>
156 <li>Function or option that returns an array with the pressed buttons (LEFT: true, L: true, R: false, etc.). Use the bitmasks of CB_Controllers_Proprietary.WII_U.GAMEPAD_BUTTONS and CB_Controllers_Proprietary.WII_U.REMOTE_BUTTONS.</li>
157 </ul>
158 </dd>
159
160</dl>
161
162
163
164
165 </div>
166
167
168
169
170
171
172
173
174
175
176
177
178 <h3 class="subsection-title">Members</h3>
179
180 <dl>
181
182<hr>
183<dt class="name" id=".GAMEPAD_BUTTONS">
184 <h4 id=".GAMEPAD_BUTTONS"><span class="type-signature">&lt;static, constant> </span>GAMEPAD_BUTTONS<span class="type-signature"> :Object</span></h4>
185
186
187</dt>
188<dd>
189
190 <div class="description">
191 <p>Object which keeps the values for the Nintendo Wii U gamepad's buttons (bitmasks).</p>
192 </div>
193
194
195
196 <h5>Type:</h5>
197 <ul>
198 <li>
199
200<span class="param-type">Object</span>
201
202
203
204 </li>
205 </ul>
206
207
208
209<dl class="details">
210
211
212 <h5 class="subsection-title">Properties:</h5>
213
214 <dl>
215
216<table class="props table table-striped">
217 <thead>
218 <tr>
219
220 <th>Name</th>
221
222
223 <th>Type</th>
224
225
226
227
228
229 <th class="last">Description</th>
230 </tr>
231 </thead>
232
233 <tbody>
234
235
236 <tr>
237
238 <td class="name"><code>LEFT_STICK_LEFT</code></td>
239
240
241 <td class="type">
242
243
244<span class="param-type">number</span>
245
246
247
248
249 </td>
250
251
252
253
254
255 <td class="description last"><p>LEFT on the LEFT STICK. Default action: Scroll/Pan.</p></td>
256 </tr>
257
258
259
260 <tr>
261
262 <td class="name"><code>LEFT_STICK_RIGHT</code></td>
263
264
265 <td class="type">
266
267
268<span class="param-type">number</span>
269
270
271
272
273 </td>
274
275
276
277
278
279 <td class="description last"><p>RIGHT on the LEFT STICK. Default action: Scroll/Pan.</p></td>
280 </tr>
281
282
283
284 <tr>
285
286 <td class="name"><code>LEFT_STICK_UP</code></td>
287
288
289 <td class="type">
290
291
292<span class="param-type">number</span>
293
294
295
296
297 </td>
298
299
300
301
302
303 <td class="description last"><p>UP on the LEFT STICK. Default action: Scroll/Pan.</p></td>
304 </tr>
305
306
307
308 <tr>
309
310 <td class="name"><code>LEFT_STICK_DOWN</code></td>
311
312
313 <td class="type">
314
315
316<span class="param-type">number</span>
317
318
319
320
321 </td>
322
323
324
325
326
327 <td class="description last"><p>DOWN on the LEFT STICK. Default action: Scroll/Pan.</p></td>
328 </tr>
329
330
331
332 <tr>
333
334 <td class="name"><code>LEFT_STICK_CLICK</code></td>
335
336
337 <td class="type">
338
339
340<span class="param-type">number</span>
341
342
343
344
345 </td>
346
347
348
349
350
351 <td class="description last"><p>CLICK on the LEFT STICK. Default action: Hide/show bottom toolbar.</p></td>
352 </tr>
353
354
355
356 <tr>
357
358 <td class="name"><code>RIGHT_STICK_LEFT</code></td>
359
360
361 <td class="type">
362
363
364<span class="param-type">number</span>
365
366
367
368
369 </td>
370
371
372
373
374
375 <td class="description last"><p>LEFT on the RIGHT STICK. Default action: Zoom.</p></td>
376 </tr>
377
378
379
380 <tr>
381
382 <td class="name"><code>RIGHT_STICK_RIGHT</code></td>
383
384
385 <td class="type">
386
387
388<span class="param-type">number</span>
389
390
391
392
393 </td>
394
395
396
397
398
399 <td class="description last"><p>RIGHT on the RIGHT STICK. Default action: Zoom.</p></td>
400 </tr>
401
402
403
404 <tr>
405
406 <td class="name"><code>RIGHT_STICK_UP</code></td>
407
408
409 <td class="type">
410
411
412<span class="param-type">number</span>
413
414
415
416
417 </td>
418
419
420
421
422
423 <td class="description last"><p>UP on the RIGHT STICK. Default action: Zoom.</p></td>
424 </tr>
425
426
427
428 <tr>
429
430 <td class="name"><code>RIGHT_STICK_DOWN</code></td>
431
432
433 <td class="type">
434
435
436<span class="param-type">number</span>
437
438
439
440
441 </td>
442
443
444
445
446
447 <td class="description last"><p>DOWN on the RIGHT STICK. Default action: Zoom.</p></td>
448 </tr>
449
450
451
452 <tr>
453
454 <td class="name"><code>RIGHT_STICK_CLICK</code></td>
455
456
457 <td class="type">
458
459
460<span class="param-type">number</span>
461
462
463
464
465 </td>
466
467
468
469
470
471 <td class="description last"><p>CLICK on the RIGHT STICK. Default actionn: Toggle zoom in/out on center of screen.</p></td>
472 </tr>
473
474
475
476 <tr>
477
478 <td class="name"><code>TV</code></td>
479
480
481 <td class="type">
482
483
484<span class="param-type">number</span>
485
486
487
488
489 </td>
490
491
492
493
494
495 <td class="description last"><p>&quot;TV&quot; button.</p></td>
496 </tr>
497
498
499
500 <tr>
501
502 <td class="name"><code>A</code></td>
503
504
505 <td class="type">
506
507
508<span class="param-type">number</span>
509
510
511
512
513 </td>
514
515
516
517
518
519 <td class="description last"><p>&quot;A&quot; button. Send the &quot;Enter&quot; key (keyCode 13).</p></td>
520 </tr>
521
522
523
524 <tr>
525
526 <td class="name"><code>B</code></td>
527
528
529 <td class="type">
530
531
532<span class="param-type">number</span>
533
534
535
536
537 </td>
538
539
540
541
542
543 <td class="description last"><p>&quot;B&quot; button. Default action: Back to previous page (hold B: Close current tab).</p></td>
544 </tr>
545
546
547
548 <tr>
549
550 <td class="name"><code>X</code></td>
551
552
553 <td class="type">
554
555
556<span class="param-type">number</span>
557
558
559
560
561 </td>
562
563
564
565
566
567 <td class="description last"><p>&quot;X&quot; button. Default action: Toggle curtain mode.</p></td>
568 </tr>
569
570
571
572 <tr>
573
574 <td class="name"><code>Y</code></td>
575
576
577 <td class="type">
578
579
580<span class="param-type">number</span>
581
582
583
584
585 </td>
586
587
588
589
590
591 <td class="description last"><p>&quot;Y&quot; button. Default action: View bookmarks.</p></td>
592 </tr>
593
594
595
596 <tr>
597
598 <td class="name"><code>LEFT</code></td>
599
600
601 <td class="type">
602
603
604<span class="param-type">number</span>
605
606
607
608
609 </td>
610
611
612
613
614
615 <td class="description last"><p>LEFT button on the control pad. Default action: Select links / form fields.</p></td>
616 </tr>
617
618
619
620 <tr>
621
622 <td class="name"><code>RIGHT</code></td>
623
624
625 <td class="type">
626
627
628<span class="param-type">number</span>
629
630
631
632
633 </td>
634
635
636
637
638
639 <td class="description last"><p>RIGHT button on the control pad. Default action: Select links / form fields.</p></td>
640 </tr>
641
642
643
644 <tr>
645
646 <td class="name"><code>UP</code></td>
647
648
649 <td class="type">
650
651
652<span class="param-type">number</span>
653
654
655
656
657 </td>
658
659
660
661
662
663 <td class="description last"><p>UP button on the control pad. Default action: Select links / form fields.</p></td>
664 </tr>
665
666
667
668 <tr>
669
670 <td class="name"><code>DOWN</code></td>
671
672
673 <td class="type">
674
675
676<span class="param-type">number</span>
677
678
679
680
681 </td>
682
683
684
685
686
687 <td class="description last"><p>DOWN button on the control pad. Default action: Select links / form fields.</p></td>
688 </tr>
689
690
691
692 <tr>
693
694 <td class="name"><code>ZL</code></td>
695
696
697 <td class="type">
698
699
700<span class="param-type">number</span>
701
702
703
704
705 </td>
706
707
708
709
710
711 <td class="description last"><p>&quot;ZL&quot; button. Default action: Switch to previous tab (hold ZL+ZR: Tilt scrolling).</p></td>
712 </tr>
713
714
715
716 <tr>
717
718 <td class="name"><code>ZR</code></td>
719
720
721 <td class="type">
722
723
724<span class="param-type">number</span>
725
726
727
728
729 </td>
730
731
732
733
734
735 <td class="description last"><p>&quot;ZR&quot; button. Default action: Switch to next tab (hold ZL+ZR: Tilt scrolling).</p></td>
736 </tr>
737
738
739
740 <tr>
741
742 <td class="name"><code>L</code></td>
743
744
745 <td class="type">
746
747
748<span class="param-type">number</span>
749
750
751
752
753 </td>
754
755
756
757
758
759 <td class="description last"><p>&quot;L&quot; button. Default action: Back to previous page.</p></td>
760 </tr>
761
762
763
764 <tr>
765
766 <td class="name"><code>R</code></td>
767
768
769 <td class="type">
770
771
772<span class="param-type">number</span>
773
774
775
776
777 </td>
778
779
780
781
782
783 <td class="description last"><p>&quot;R&quot; button. Default action: Forward to next page.</p></td>
784 </tr>
785
786
787
788 <tr>
789
790 <td class="name"><code>START</code></td>
791
792
793 <td class="type">
794
795
796<span class="param-type">number</span>
797
798
799
800
801 </td>
802
803
804
805
806
807 <td class="description last"><p>&quot;START&quot; button.</p></td>
808 </tr>
809
810
811
812 <tr>
813
814 <td class="name"><code>PLUS</code></td>
815
816
817 <td class="type">
818
819
820<span class="param-type">number</span>
821
822
823
824
825 </td>
826
827
828
829
830
831 <td class="description last"><p>Alias for <code>CB_Controllers_Proprietary.WII_U.GAMEPAD_BUTTONS.START</code>.</p></td>
832 </tr>
833
834
835
836 <tr>
837
838 <td class="name"><code>SELECT</code></td>
839
840
841 <td class="type">
842
843
844<span class="param-type">number</span>
845
846
847
848
849 </td>
850
851
852
853
854
855 <td class="description last"><p>&quot;SELECT&quot; button.</p></td>
856 </tr>
857
858
859
860 <tr>
861
862 <td class="name"><code>MINUS</code></td>
863
864
865 <td class="type">
866
867
868<span class="param-type">number</span>
869
870
871
872
873 </td>
874
875
876
877
878
879 <td class="description last"><p>Alias for <code>CB_Controllers_Proprietary.WII_U.GAMEPAD_BUTTONS.SELECT</code>.</p></td>
880 </tr>
881
882
883
884 <tr>
885
886 <td class="name"><code>HOME</code></td>
887
888
889 <td class="type">
890
891
892<span class="param-type">number</span>
893
894
895
896
897 </td>
898
899
900
901
902
903 <td class="description last"><p>HOME button. Default action: Quit browser.</p></td>
904 </tr>
905
906
907 </tbody>
908</table>
909</dl>
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
941 <dd class="tag-source">
942 <ul class="dummy">
943 <li>
944 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html">CrossBase/input/controllers/CB_Controllers_Proprietary_WII_U.js</a>,
945 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html#sunlight-1-line-46">line 46</a>
946 </li>
947 </ul>
948 </dd>
949
950
951
952
953
954
955
956</dl>
957
958
959
960</dd>
961
962
963
964<hr>
965<dt class="name" id=".gamepadLastStatus">
966 <h4 id=".gamepadLastStatus"><span class="type-signature">&lt;static, readonly> </span>gamepadLastStatus<span class="type-signature"> :Object</span></h4>
967
968
969</dt>
970<dd>
971
972 <div class="description">
973 <p>Keeps the last return value of the <a href="CB_Controllers_Proprietary.WII_U.html#.getGamePadStatus"><code>CB_Controllers_Proprietary.WII_U.getGamePadStatus</code></a> function (if any). The value should be the last status object returned.</p>
974 </div>
975
976
977
978 <h5>Type:</h5>
979 <ul>
980 <li>
981
982<span class="param-type">Object</span>
983
984
985
986 </li>
987 </ul>
988
989
990
991<dl class="details">
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1022 <dd class="tag-source">
1023 <ul class="dummy">
1024 <li>
1025 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html">CrossBase/input/controllers/CB_Controllers_Proprietary_WII_U.js</a>,
1026 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html#sunlight-1-line-34">line 34</a>
1027 </li>
1028 </ul>
1029 </dd>
1030
1031
1032
1033
1034
1035
1036
1037</dl>
1038
1039
1040
1041</dd>
1042
1043
1044
1045<hr>
1046<dt class="name" id=".REMOTE_BUTTONS">
1047 <h4 id=".REMOTE_BUTTONS"><span class="type-signature">&lt;static, constant> </span>REMOTE_BUTTONS<span class="type-signature"> :Object</span></h4>
1048
1049
1050</dt>
1051<dd>
1052
1053 <div class="description">
1054 <p>Object which keeps the values for the Nintendo Wii U remote's buttons (bitmasks).</p>
1055 </div>
1056
1057
1058
1059 <h5>Type:</h5>
1060 <ul>
1061 <li>
1062
1063<span class="param-type">Object</span>
1064
1065
1066
1067 </li>
1068 </ul>
1069
1070
1071
1072<dl class="details">
1073
1074
1075 <h5 class="subsection-title">Properties:</h5>
1076
1077 <dl>
1078
1079<table class="props table table-striped">
1080 <thead>
1081 <tr>
1082
1083 <th>Name</th>
1084
1085
1086 <th>Type</th>
1087
1088
1089
1090
1091
1092 <th class="last">Description</th>
1093 </tr>
1094 </thead>
1095
1096 <tbody>
1097
1098
1099 <tr>
1100
1101 <td class="name"><code>UP</code></td>
1102
1103
1104 <td class="type">
1105
1106
1107<span class="param-type">number</span>
1108
1109
1110
1111
1112 </td>
1113
1114
1115
1116
1117
1118 <td class="description last"><p>UP button.</p></td>
1119 </tr>
1120
1121
1122
1123 <tr>
1124
1125 <td class="name"><code>DOWN</code></td>
1126
1127
1128 <td class="type">
1129
1130
1131<span class="param-type">number</span>
1132
1133
1134
1135
1136 </td>
1137
1138
1139
1140
1141
1142 <td class="description last"><p>DOWN button.</p></td>
1143 </tr>
1144
1145
1146
1147 <tr>
1148
1149 <td class="name"><code>LEFT</code></td>
1150
1151
1152 <td class="type">
1153
1154
1155<span class="param-type">number</span>
1156
1157
1158
1159
1160 </td>
1161
1162
1163
1164
1165
1166 <td class="description last"><p>LEFT button.</p></td>
1167 </tr>
1168
1169
1170
1171 <tr>
1172
1173 <td class="name"><code>RIGHT</code></td>
1174
1175
1176 <td class="type">
1177
1178
1179<span class="param-type">number</span>
1180
1181
1182
1183
1184 </td>
1185
1186
1187
1188
1189
1190 <td class="description last"><p>RIGHT button.</p></td>
1191 </tr>
1192
1193
1194
1195 <tr>
1196
1197 <td class="name"><code>A</code></td>
1198
1199
1200 <td class="type">
1201
1202
1203<span class="param-type">number</span>
1204
1205
1206
1207
1208 </td>
1209
1210
1211
1212
1213
1214 <td class="description last"><p>&quot;A&quot; button.</p></td>
1215 </tr>
1216
1217
1218
1219 <tr>
1220
1221 <td class="name"><code>B</code></td>
1222
1223
1224 <td class="type">
1225
1226
1227<span class="param-type">number</span>
1228
1229
1230
1231
1232 </td>
1233
1234
1235
1236
1237
1238 <td class="description last"><p>&quot;B&quot; button.</p></td>
1239 </tr>
1240
1241
1242
1243 <tr>
1244
1245 <td class="name"><code>ONE</code></td>
1246
1247
1248 <td class="type">
1249
1250
1251<span class="param-type">number</span>
1252
1253
1254
1255
1256 </td>
1257
1258
1259
1260
1261
1262 <td class="description last"><p>&quot;1&quot; button.</p></td>
1263 </tr>
1264
1265
1266
1267 <tr>
1268
1269 <td class="name"><code>_1</code></td>
1270
1271
1272 <td class="type">
1273
1274
1275<span class="param-type">number</span>
1276
1277
1278
1279
1280 </td>
1281
1282
1283
1284
1285
1286 <td class="description last"><p>Alias for <code>CB_Controllers_Proprietary.WII_U.REMOTE_BUTTONS.ONE</code>.</p></td>
1287 </tr>
1288
1289
1290
1291 <tr>
1292
1293 <td class="name"><code>1</code></td>
1294
1295
1296 <td class="type">
1297
1298
1299<span class="param-type">number</span>
1300
1301
1302
1303
1304 </td>
1305
1306
1307
1308
1309
1310 <td class="description last"><p>Alias for <code>CB_Controllers_Proprietary.WII_U.REMOTE_BUTTONS.ONE</code>.</p></td>
1311 </tr>
1312
1313
1314
1315 <tr>
1316
1317 <td class="name"><code>TWO</code></td>
1318
1319
1320 <td class="type">
1321
1322
1323<span class="param-type">number</span>
1324
1325
1326
1327
1328 </td>
1329
1330
1331
1332
1333
1334 <td class="description last"><p>&quot;2&quot; button.</p></td>
1335 </tr>
1336
1337
1338
1339 <tr>
1340
1341 <td class="name"><code>_2</code></td>
1342
1343
1344 <td class="type">
1345
1346
1347<span class="param-type">number</span>
1348
1349
1350
1351
1352 </td>
1353
1354
1355
1356
1357
1358 <td class="description last"><p>Alias for <code>CB_Controllers_Proprietary.WII_U.REMOTE_BUTTONS.TWO</code>.</p></td>
1359 </tr>
1360
1361
1362
1363 <tr>
1364
1365 <td class="name"><code>2</code></td>
1366
1367
1368 <td class="type">
1369
1370
1371<span class="param-type">number</span>
1372
1373
1374
1375
1376 </td>
1377
1378
1379
1380
1381
1382 <td class="description last"><p>Alias for <code>CB_Controllers_Proprietary.WII_U.REMOTE_BUTTONS.TWO</code>.</p></td>
1383 </tr>
1384
1385
1386
1387 <tr>
1388
1389 <td class="name"><code>PLUS</code></td>
1390
1391
1392 <td class="type">
1393
1394
1395<span class="param-type">number</span>
1396
1397
1398
1399
1400 </td>
1401
1402
1403
1404
1405
1406 <td class="description last"><p>PLUS (&quot;+&quot;) button.</p></td>
1407 </tr>
1408
1409
1410
1411 <tr>
1412
1413 <td class="name"><code>MINUS</code></td>
1414
1415
1416 <td class="type">
1417
1418
1419<span class="param-type">number</span>
1420
1421
1422
1423
1424 </td>
1425
1426
1427
1428
1429
1430 <td class="description last"><p>MINUS (&quot;-&quot;) button.</p></td>
1431 </tr>
1432
1433
1434
1435 <tr>
1436
1437 <td class="name"><code>HOME</code></td>
1438
1439
1440 <td class="type">
1441
1442
1443<span class="param-type">number</span>
1444
1445
1446
1447
1448 </td>
1449
1450
1451
1452
1453
1454 <td class="description last"><p>HOME button.</p></td>
1455 </tr>
1456
1457
1458 </tbody>
1459</table>
1460</dl>
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1492 <dd class="tag-source">
1493 <ul class="dummy">
1494 <li>
1495 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html">CrossBase/input/controllers/CB_Controllers_Proprietary_WII_U.js</a>,
1496 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html#sunlight-1-line-111">line 111</a>
1497 </li>
1498 </ul>
1499 </dd>
1500
1501
1502
1503
1504
1505
1506
1507</dl>
1508
1509
1510
1511</dd>
1512
1513
1514
1515<hr>
1516<dt class="name" id=".remoteLastStatus">
1517 <h4 id=".remoteLastStatus"><span class="type-signature">&lt;static, readonly> </span>remoteLastStatus<span class="type-signature"> :array</span></h4>
1518
1519
1520</dt>
1521<dd>
1522
1523 <div class="description">
1524 <p>Keeps an array with numeric indexes (should be from 0 to 7 maximum) that belong to each remote number and whose values contain the last return value of the <a href="CB_Controllers_Proprietary.WII_U.html#.getRemoteStatus"><code>CB_Controllers_Proprietary.WII_U.getRemoteStatus</code></a> function (if any). Each value should be the last status object returned.</p>
1525 </div>
1526
1527
1528
1529 <h5>Type:</h5>
1530 <ul>
1531 <li>
1532
1533<span class="param-type">array</span>
1534
1535
1536
1537 </li>
1538 </ul>
1539
1540
1541
1542<dl class="details">
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568 <dt class="tag-default method-doc-label method-doc-details-label">Default Value:</dt>
1569 <dd class="tag-default">
1570 <ul class="dummy">
1571 <li>[]</li>
1572 </ul>
1573 </dd>
1574
1575
1576
1577
1578
1579 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1580 <dd class="tag-source">
1581 <ul class="dummy">
1582 <li>
1583 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html">CrossBase/input/controllers/CB_Controllers_Proprietary_WII_U.js</a>,
1584 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html#sunlight-1-line-44">line 44</a>
1585 </li>
1586 </ul>
1587 </dd>
1588
1589
1590
1591
1592
1593
1594
1595</dl>
1596
1597
1598
1599</dd>
1600
1601
1602
1603<hr>
1604<dt class="name" id=".wiiuObject">
1605 <h4 id=".wiiuObject"><span class="type-signature">&lt;static, readonly> </span>wiiuObject<span class="type-signature"> :Object</span></h4>
1606
1607
1608</dt>
1609<dd>
1610
1611 <div class="description">
1612 <p>Keeps the &quot;wiiu&quot; object (if any).</p>
1613 </div>
1614
1615
1616
1617 <h5>Type:</h5>
1618 <ul>
1619 <li>
1620
1621<span class="param-type">Object</span>
1622
1623
1624
1625 </li>
1626 </ul>
1627
1628
1629
1630<dl class="details">
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1661 <dd class="tag-source">
1662 <ul class="dummy">
1663 <li>
1664 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html">CrossBase/input/controllers/CB_Controllers_Proprietary_WII_U.js</a>,
1665 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html#sunlight-1-line-25">line 25</a>
1666 </li>
1667 </ul>
1668 </dd>
1669
1670
1671
1672
1673
1674
1675
1676</dl>
1677
1678
1679
1680</dd>
1681
1682 </dl>
1683
1684
1685
1686 <h3 class="subsection-title">Methods</h3>
1687
1688 <dl>
1689
1690<hr>
1691<dt>
1692 <h4 class="name" id=".getGamePads"><span class="type-signature">&lt;static> </span>getGamePads<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4>
1693
1694
1695</dt>
1696<dd>
1697
1698
1699 <div class="description">
1700 <p>Returns an object with the gamepad and all remotes simulating the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API">GamePad API</a>. Uses the <a href="CB_Controllers_Proprietary.WII_U.html#.getRemoteStatus"><code>CB_Controllers_Proprietary.WII_U.getRemoteStatus</code></a> and <a href="CB_Controllers_Proprietary.WII_U.html#.getRemoteStatus"><code>CB_Controllers_Proprietary.WII_U.getRemoteStatus</code></a> internally so the objects will be normalized already.</p>
1701 </div>
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712<dl class="details">
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1743 <dd class="tag-source">
1744 <ul class="dummy">
1745 <li>
1746 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html">CrossBase/input/controllers/CB_Controllers_Proprietary_WII_U.js</a>,
1747 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html#sunlight-1-line-445">line 445</a>
1748 </li>
1749 </ul>
1750 </dd>
1751
1752
1753
1754
1755
1756
1757
1758 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
1759 <dd class="tag-todo">
1760 <ul>
1761 <li>Check the documentation to find out the maximum number of remotes allowed and find out whether the first index should be 0 or 1 and last one 7 or 8.</li>
1762 </ul>
1763 </dd>
1764
1765</dl>
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779 <h5>Returns:</h5>
1780
1781
1782<div class="param-desc">
1783 <p>Returns an object with two properties: &quot;gamepads&quot; and &quot;remotes&quot;. Each of those two properties will have an object as value whose names will be the index of the device and the value an object with the status of that device. In the case of the gamepad (which is unique), there will only be one index (&quot;0&quot;, zero). In the case of the remotes, it will contain the status objects of all the remotes. The number of remotes is 8 (index from &quot;0&quot; to &quot;7&quot;). Simulating the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API">GamePad API</a>. Those status objects which are not using the real API will have a property called &quot;usingPrototype&quot; set to true.</p>
1784</div>
1785
1786
1787
1788<dl>
1789 <dt>
1790 Type
1791 </dt>
1792 <dd>
1793
1794<span class="param-type">Object</span>
1795
1796
1797
1798 </dd>
1799</dl>
1800
1801
1802
1803
1804
1805</dd>
1806
1807
1808
1809<hr>
1810<dt>
1811 <h4 class="name" id=".getGamePadStatus"><span class="type-signature">&lt;static> </span>getGamePadStatus<span class="signature">()</span><span class="type-signature"> &rarr; {Object}</span></h4>
1812
1813
1814</dt>
1815<dd>
1816
1817
1818 <div class="description">
1819 <p>Returns an object with the current status of each button of the gamepad. Already calls <a href="CB_Controllers_Proprietary.WII_U.html#.normalizeGamepad"><code>CB_Controllers_Proprietary.WII_U.normalizeGamepad</code></a> automatically.</p>
1820 </div>
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831<dl class="details">
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1862 <dd class="tag-source">
1863 <ul class="dummy">
1864 <li>
1865 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html">CrossBase/input/controllers/CB_Controllers_Proprietary_WII_U.js</a>,
1866 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html#sunlight-1-line-418">line 418</a>
1867 </li>
1868 </ul>
1869 </dd>
1870
1871
1872
1873
1874
1875
1876
1877</dl>
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891 <h5>Returns:</h5>
1892
1893
1894<div class="param-desc">
1895 <p>Returns an object with the current status of each button of the gamepad.</p>
1896</div>
1897
1898
1899
1900<dl>
1901 <dt>
1902 Type
1903 </dt>
1904 <dd>
1905
1906<span class="param-type">Object</span>
1907
1908
1909
1910 </dd>
1911</dl>
1912
1913
1914
1915
1916
1917</dd>
1918
1919
1920
1921<hr>
1922<dt>
1923 <h4 class="name" id=".getRemoteStatus"><span class="type-signature">&lt;static> </span>getRemoteStatus<span class="signature">( [n])</span><span class="type-signature"> &rarr; {Object}</span></h4>
1924
1925
1926</dt>
1927<dd>
1928
1929
1930 <div class="description">
1931 <p>Returns an object with the current status of each button of the desired remote. Already calls <a href="CB_Controllers_Proprietary.WII_U.html#.normalizeRemote"><code>CB_Controllers_Proprietary.WII_U.normalizeRemote</code></a> automatically.</p>
1932 </div>
1933
1934
1935
1936
1937
1938
1939
1940
1941 <h5>Parameters:</h5>
1942
1943
1944<table class="params table table-striped">
1945 <thead>
1946 <tr>
1947
1948 <th style="width:12%; min-width:110px;">Name</th>
1949
1950
1951 <th style="width:12%; min-width:110px;">Type</th>
1952
1953
1954 <th style="width:12%; min-width:110px;">Argument</th>
1955
1956
1957
1958 <th style="width:12%; min-width:110px;">Default</th>
1959
1960
1961 <th class="last" style="min-width:310px;">Description</th>
1962 </tr>
1963 </thead>
1964
1965 <tbody>
1966
1967
1968 <tr>
1969
1970 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>n</code></td>
1971
1972
1973 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1974
1975
1976<span class="param-type">integer</span>
1977
1978
1979
1980
1981 </td>
1982
1983
1984 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1985
1986 &lt;optional><br>
1987
1988
1989
1990
1991
1992 </td>
1993
1994
1995
1996 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1997
1998 0
1999
2000 </td>
2001
2002
2003 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Number of the remote whose status we want to get, from 0 to 7 (both numbers included, 8 in total).</p></td>
2004 </tr>
2005
2006
2007 </tbody>
2008</table>
2009
2010
2011
2012
2013<dl class="details">
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2044 <dd class="tag-source">
2045 <ul class="dummy">
2046 <li>
2047 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html">CrossBase/input/controllers/CB_Controllers_Proprietary_WII_U.js</a>,
2048 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html#sunlight-1-line-431">line 431</a>
2049 </li>
2050 </ul>
2051 </dd>
2052
2053
2054
2055
2056
2057
2058
2059 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
2060 <dd class="tag-todo">
2061 <ul>
2062 <li>Check documentation to see whether the first index should be 0 or 1 and maximum 7 or 8.</li>
2063 </ul>
2064 </dd>
2065
2066</dl>
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080 <h5>Returns:</h5>
2081
2082
2083<div class="param-desc">
2084 <p>Returns an object with the current status of each button of the desired remote.</p>
2085</div>
2086
2087
2088
2089<dl>
2090 <dt>
2091 Type
2092 </dt>
2093 <dd>
2094
2095<span class="param-type">Object</span>
2096
2097
2098
2099 </dd>
2100</dl>
2101
2102
2103
2104
2105
2106</dd>
2107
2108
2109
2110<hr>
2111<dt>
2112 <h4 class="name" id=".normalizeGamepad"><span class="type-signature">&lt;static> </span>normalizeGamepad<span class="signature">(gamepadStatusObject)</span><span class="type-signature"> &rarr; {Object}</span></h4>
2113
2114
2115</dt>
2116<dd>
2117
2118
2119 <div class="description">
2120 <p>Normalizes the given gamepad status object, adding missing properties.</p>
2121 </div>
2122
2123
2124
2125
2126
2127
2128
2129
2130 <h5>Parameters:</h5>
2131
2132
2133<table class="params table table-striped">
2134 <thead>
2135 <tr>
2136
2137 <th style="width:12%; min-width:110px;">Name</th>
2138
2139
2140 <th style="width:12%; min-width:110px;">Type</th>
2141
2142
2143
2144
2145
2146 <th class="last" style="min-width:310px;">Description</th>
2147 </tr>
2148 </thead>
2149
2150 <tbody>
2151
2152
2153 <tr>
2154
2155 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>gamepadStatusObject</code></td>
2156
2157
2158 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2159
2160
2161<span class="param-type">object</span>
2162
2163
2164
2165
2166 </td>
2167
2168
2169
2170
2171
2172 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The gamepad status object that we want to normalize.</p></td>
2173 </tr>
2174
2175
2176 </tbody>
2177</table>
2178
2179
2180
2181
2182<dl class="details">
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2213 <dd class="tag-source">
2214 <ul class="dummy">
2215 <li>
2216 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html">CrossBase/input/controllers/CB_Controllers_Proprietary_WII_U.js</a>,
2217 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html#sunlight-1-line-294">line 294</a>
2218 </li>
2219 </ul>
2220 </dd>
2221
2222
2223
2224
2225
2226
2227
2228</dl>
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242 <h5>Returns:</h5>
2243
2244
2245<div class="param-desc">
2246 <p>Returns the given gamepad status object but normalized, adding missing properties.</p>
2247</div>
2248
2249
2250
2251<dl>
2252 <dt>
2253 Type
2254 </dt>
2255 <dd>
2256
2257<span class="param-type">Object</span>
2258
2259
2260
2261 </dd>
2262</dl>
2263
2264
2265
2266
2267
2268</dd>
2269
2270
2271
2272<hr>
2273<dt>
2274 <h4 class="name" id=".normalizeRemote"><span class="type-signature">&lt;static> </span>normalizeRemote<span class="signature">(gamepadStatusObject [, n])</span><span class="type-signature"> &rarr; {Object}</span></h4>
2275
2276
2277</dt>
2278<dd>
2279
2280
2281 <div class="description">
2282 <p>Normalizes the given remote status object, adding missing properties.</p>
2283 </div>
2284
2285
2286
2287
2288
2289
2290
2291
2292 <h5>Parameters:</h5>
2293
2294
2295<table class="params table table-striped">
2296 <thead>
2297 <tr>
2298
2299 <th style="width:12%; min-width:110px;">Name</th>
2300
2301
2302 <th style="width:12%; min-width:110px;">Type</th>
2303
2304
2305 <th style="width:12%; min-width:110px;">Argument</th>
2306
2307
2308
2309 <th style="width:12%; min-width:110px;">Default</th>
2310
2311
2312 <th class="last" style="min-width:310px;">Description</th>
2313 </tr>
2314 </thead>
2315
2316 <tbody>
2317
2318
2319 <tr>
2320
2321 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>gamepadStatusObject</code></td>
2322
2323
2324 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2325
2326
2327<span class="param-type">object</span>
2328
2329
2330
2331
2332 </td>
2333
2334
2335 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2336
2337
2338
2339
2340
2341 </td>
2342
2343
2344
2345 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2346
2347 </td>
2348
2349
2350 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The remote status object that we want to normalize.</p></td>
2351 </tr>
2352
2353
2354
2355 <tr>
2356
2357 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>n</code></td>
2358
2359
2360 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2361
2362
2363<span class="param-type">integer</span>
2364
2365
2366
2367
2368 </td>
2369
2370
2371 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2372
2373 &lt;optional><br>
2374
2375
2376
2377
2378
2379 </td>
2380
2381
2382
2383 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2384
2385 0
2386
2387 </td>
2388
2389
2390 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Number of the remote whose status we want to get, from 0 to 7 (both numbers included, 8 in total). It will be used as its identifier.</p></td>
2391 </tr>
2392
2393
2394 </tbody>
2395</table>
2396
2397
2398
2399
2400<dl class="details">
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2431 <dd class="tag-source">
2432 <ul class="dummy">
2433 <li>
2434 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html">CrossBase/input/controllers/CB_Controllers_Proprietary_WII_U.js</a>,
2435 <a href="CrossBase_input_controllers_CB_Controllers_Proprietary_WII_U.js.html#sunlight-1-line-371">line 371</a>
2436 </li>
2437 </ul>
2438 </dd>
2439
2440
2441
2442
2443
2444
2445
2446</dl>
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460 <h5>Returns:</h5>
2461
2462
2463<div class="param-desc">
2464 <p>Returns the given remote status object but normalized, adding missing properties.</p>
2465</div>
2466
2467
2468
2469<dl>
2470 <dt>
2471 Type
2472 </dt>
2473 <dd>
2474
2475<span class="param-type">Object</span>
2476
2477
2478
2479 </dd>
2480</dl>
2481
2482
2483
2484
2485
2486</dd>
2487
2488 </dl>
2489
2490
2491
2492
2493
2494</article>
2495
2496</section>
2497
2498
2499
2500
2501 </div>
2502 </div>
2503
2504 <div class="clearfix"></div>
2505
2506
2507 <div class="col-md-3">
2508 <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
2509 </div>
2510
2511
2512</div>
2513</div>
2514
2515
2516 <div class="modal fade" id="searchResults">
2517 <div class="modal-dialog">
2518 <div class="modal-content">
2519 <div class="modal-header">
2520 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
2521 <h4 class="modal-title">Search results</h4>
2522 </div>
2523 <div class="modal-body"></div>
2524 <div class="modal-footer">
2525 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
2526 </div>
2527 </div><!-- /.modal-content -->
2528 </div><!-- /.modal-dialog -->
2529 </div>
2530
2531
2532<footer>
2533
2534
2535 <span class="copyright">
2536 <a href="printable/" target="_blank">See a more printer-friendly version</a><hr /><span style="color:#000000">© <address style="display:inline; font-style:normal;"><a href="https://crossbrowdy.com/" target="_blank">CrossBrowdy</a> API documentation</address> by <a href="https://joanalbamaldonado.com/" target="_blank">Joan Alba Maldonado</a> - <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">Creative Commons Attribution 4.0 International</a><br />DocStrap Copyright © 2012-2015 The contributors to the JSDoc3 and DocStrap projects.</span>
2537 </span>
2538
2539<span class="jsdoc-message">
2540 Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
2541
2542 on Mon Feb 3rd 2020
2543
2544 using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
2545</span>
2546</footer>
2547
2548<script src="scripts/docstrap.lib.js"></script>
2549<script src="scripts/toc.js"></script>
2550
2551 <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
2552
2553
2554<script>
2555$( function () {
2556 $( "[id*='$']" ).each( function () {
2557 var $this = $( this );
2558
2559 $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
2560 } );
2561
2562 $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
2563 var $this = $( this );
2564
2565 var example = $this.find( "code" );
2566 exampleText = example.html();
2567 var lang = /{@lang (.*?)}/.exec( exampleText );
2568 if ( lang && lang[1] ) {
2569 exampleText = exampleText.replace( lang[0], "" );
2570 example.html( exampleText );
2571 lang = lang[1];
2572 } else {
2573 var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
2574 lang = langClassMatch ? langClassMatch[1] : "javascript";
2575 }
2576
2577 if ( lang ) {
2578
2579 $this
2580 .addClass( "sunlight-highlight-" + lang )
2581 .addClass( "linenums" )
2582 .html( example.html() );
2583
2584 }
2585 } );
2586
2587 Sunlight.highlightAll( {
2588 lineNumbers : true,
2589 showMenu : true,
2590 enableDoclinks : true
2591 } );
2592
2593 $.catchAnchorLinks( {
2594 navbarOffset: 10
2595 } );
2596 $( "#toc" ).toc( {
2597 anchorName : function ( i, heading, prefix ) {
2598 return $( heading ).attr( "id" ) || ( prefix + i );
2599 },
2600 selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
2601 showAndHide : false,
2602 smoothScrolling: true
2603 } );
2604
2605 $( "#main span[id^='toc']" ).addClass( "toc-shim" );
2606 $( '.dropdown-toggle' ).dropdown();
2607
2608 $( "table" ).each( function () {
2609 var $this = $( this );
2610 $this.addClass('table');
2611 } );
2612
2613} );
2614</script>
2615
2616
2617
2618<!--Navigation and Symbol Display-->
2619
2620<script>
2621 $( function () {
2622 $( '#main' ).localScroll( {
2623 offset : { top : 60 } //offset by the height of your header (give or take a few px, see what works for you)
2624 } );
2625 $( "dt.name" ).each( function () {
2626 var $this = $( this ).find("h4");
2627 var icon = $( "<i/>" ).addClass( "icon-plus-sign" ).addClass( "pull-right" ).addClass( "icon-white" );
2628 var dt = $(this);
2629 var children = dt.next( "dd" );
2630
2631 dt.prepend( icon ).css( {cursor : "pointer"} );
2632 dt.addClass( "member-collapsed" ).addClass( "member" );
2633
2634
2635 children.hide();
2636
2637 dt.children().on( "click", function () {
2638 children = dt.next( "dd" );
2639 children.slideToggle( "fast", function () {
2640
2641 if ( children.is( ":visible" ) ) {
2642 icon.addClass( "icon-minus-sign" ).removeClass( "icon-plus-sign" ).removeClass( "icon-white" );
2643 dt.addClass( "member-open" ).animate( "member-collapsed" );
2644 } else {
2645 icon.addClass( "icon-plus-sign" ).removeClass( "icon-minus-sign" ).addClass( "icon-white" );
2646 dt.addClass( "member-collapsed" ).removeClass( "member-open" );
2647 }
2648 } );
2649 } );
2650
2651 } );
2652 } );
2653</script>
2654
2655
2656<!--Google Analytics-->
2657
2658
2659
2660 <script type="text/javascript">
2661 $(document).ready(function() {
2662 SearcherDisplay.init();
2663 });
2664 </script>
2665
2666
2667</body>
2668</html>
\No newline at end of file