description |
---|
More input types than you can dream of |
When you want to accept content from the user, you instantiate and interact with wiiKeyboard
. Utilizing its method, you can specify layouts and options for input that best fit your content.
var keyboard = new wiiKeyboard();
Note that wiiKeyboard
will only function on pages loading over HTTPS. You will need to modify the Wii Shop Channel to load your content. Opera (and IOS via EC) only has SSLv3/TLS 1.0 available, so additional modifications to various trust levels may be necessary.
Unlike other objects, wiiKeyboard
only exposes one member. Its usefulness is instead via its parameters variants.
Member Name | Discussion |
---|---|
keyboard.call(type) |
Invokes a keyboard of the specified type. An example of |
keyboard.call(type, rowLimit) |
Invokes a keyboard of type with a limit of the amount of rows available for typing. An example of a row limit when invoked as |
keyboard.call(type, rowLimit, isPassword) |
Instantiates a keyboard of type with An example of |
keyboard.call(type, rowLimit, isPassword, hint) |
Instantiates a keyboard of type with An example of |
There are 11 variants of keyboards available. For all examples, the used code to invoke was similar to the following:
<textarea rows="5" style="width: 100%" onmousedown="keyboard.call(1);"></textarea>
The 11 variants are as follows:
- Default
- Default (2)
- Number Pad
- Default without Return, Completion, Number Pad
- Large Font
- Default without Return
- Large Font without Return and Number Pad
- Large Number with Decimal
- Large Number with Decimal (2)
- Friend Code Entry
- Default without Return
Type 0
, or defaulted to if any value above 13 is specified. A generic keyboard.
Type 1
. Appears to behave similarly to Default on all regions.
Type 2
. Provides a generic number pad, useful for things such as friend code entry.
Type 3
. The same as Default, but lacking a return key and word completion/suggestion.
Type 4
. Entered text cannot exceed the text field's length.
Type 5
. Lacks word completion/suggestion, and the switcher UI between QWERTY and a number pad:
Type 6
. Lacks word completion/suggestion, and the switcher UI between QWERTY and a number pad.
Type 7
. Provides a decimal point alongside numeric entry.
Type 8
. Appears to operate similarly to Large Number with Decimal - TODO: Does this function differently in other regions?
Type 9
. Provides a usable Friend Code entry pad.
Type 10
. Unlike Default without Completion, Return, this type does have completion. It lacks a return key.