2 Internet Browser - Extended Functionality
kittentm edited this page 2026-03-15 22:17:34 +01:00

Note

This information was rescued by pwsincd on BrowseDNS. Thank you!

Internet Browser - Extended Functionality

With the Wii U Internet Browser, by using specialized JavaScript, it is possible to obtain button states of the GamePad or control how video and images (JPEG) are displayed.

  • Sample page: To obtain values from the Wii U GamePad (Wii U Internet Browser required).
  • Note: Nintendo provides this information as a courtesy and does not offer support on this extension function.

Developer Mode

This feature is available for Wii U System version 4.0.0U and above.

Change user agent:

Changes can be made from the Wii U console's Internet Browser > Start Page > Settings.

Enable developer tools:

  1. Enable from the Wii U console's Internet Browser > Start Page > Settings.
  2. Once enabled, you can use a browser on a PC on the same local network to inspect the code of any web page.
  3. The developer tools work with Chrome [ver. 30.0.1599.101m] and Safari [ver. 6.0.3] and above.

Note: Changing the user agent and enabling developer tools will be disabled once the Wii U console's Internet Browser is closed.


Enhanced Video Playback Function

Embedded play (inline) on a webpage:

The Wii U console's Internet Browser generally plays video full screen. However, if text, pictures, or other elements need to be included with the video while it plays, embedding an inline video player can be done using the methods below:

  • Insert webkit-playsinline into the video tag.
    • Example: <video webkit-playsinline controls>
  • While holding down on a video tag, the option "Play video on web page" from the menu will be displayed. This button is only enabled when a video tag is found.
  • Note: Since September 30, 2013, embedded inline video play can only be done on updated systems.

Suppression of autoplay:

Since the Wii U console's Internet Browser is unable to play 2 or more videos simultaneously, autoplay is suppressed under these conditions:

  1. Video tag autoplay elements.
  2. play() ordered by non-user operations (JavaScript timers, etc.).

Navigation & Focus

Using +Control Pad buttons to focus

  • Focus movement rule: Focus moves to the first element found (anchor element link, tab index, etc.) when moving in the direction of the +Control Pad button pressed. If no element is found, the page scrolls for a determined quantity.
  • Control method: You can call up a preventDefault method for the target element node's keydown event, or hide focus by returning false.

window.wiiu.gamepad Object

Methods

Method Name Parameters Return Value Description
update() None GamePad State Object Get information on the current state of the GamePad.

Properties

Name Description
isEnabled Return 1 if the GamePad is connected.
isDataValid Return 1 if the data stored in the object is valid.
tpTouch Return 1 if the touchscreen is currently being touched.
tpValidity 0: Both X/Y valid; 1: X invalid; 2: Y invalid; 3: Both invalid.
contentX / contentY Touch position within the content area (0,0 is top-left).
lStickX / lStickY Left stick tilt (-1.0 to +1.0). Up/Right are positive.
rStickX / rStickY Right stick tilt (-1.0 to +1.0). Up/Right are positive.
hold Bitmask of buttons currently held down. See Button Flags Table.
accX / accY / accZ Accelerometer values (1G = 1.0).
gyroX / gyroY / gyroZ Gyrosensor values (360 dps = 1.0).
angleX / angleY / angleZ Amount of rotation for each axis.
dirXx to dirZz A 3x3 matrix representing the 3D orientation of the GamePad.

Button Flags Table

Input Flag Input Flag
+Up 0x00000200 A 0x00008000
+Down 0x00000100 B 0x00004000
+Left 0x00000800 X 0x00002000
+Right 0x00000400 Y 0x00001000
L 0x00000020 R 0x00000010
ZL 0x00000080 ZR 0x00000040
Minus 0x00000004 Plus 0x00000008
LStick Up 0x10000000 RStick Up 0x01000000
LStick Down 0x08000000 RStick Down 0x00800000
LStick Left 0x40000000 RStick Left 0x04000000
LStick Right 0x20000000 RStick Right 0x02000000
LStick Btn 0x00040000 RStick Btn 0x00020000

window.wiiu.videoplayer Object

Methods

Method Name Parameters Return Value Description
end() None Boolean Terminate the video player.

Properties

Name Description
viewMode 0: Video playback screen; 1: Browser screen.
  • wiiu_videoplayer_end: Call to terminate video player.

window.wiiu.imageview Object

Methods

Method Name Parameters Return Value Description
end() None Boolean Terminate the image viewer.
getErrorCode() None Number Returns the most recent error code (or -1).

Properties

Name Description
viewMode 0: Image viewer screen; 1: Browser screen.

Error Code Table

Number Description
202 Unsupported format OR width/height too large.
204 File size is too large.
205 Progressive JPEG pixel count is too large.
  • wiiu_imageview_start
  • wiiu_imageview_end
  • wiiu_imageview_change_viewmode
  • wiiu_imageview_change_content
  • wiiu_imageview_error

Key Codes (KeyEvents)

Input KeyCode
+Control Pad - UP 38
+Control Pad - DOWN 40
+Control Pad - LEFT 37
+Control Pad - RIGHT 39
A Button 13