LogoLogo
HomeLibraryDonateAbout
  • Introduction
  • JS
    • EC
      • ECommerceInterface
      • ECDeviceInfo
      • ECProgress
      • Payment Objects
        • ECPrice
        • ECCreditCardPayment
        • ECCreditCardEncryptedPayment
        • ECECardPayment
        • ECAccountPayment
        • ECTransactionInfo
      • Title Objects
        • ECTitleLimit
        • ECTitleInfo
        • ECTicketInfo
    • DL Tasks
    • Keyboard
    • Mii
    • NWC24
    • SD Card
    • Shop
    • Sound
  • SOAP
    • Base Format
    • IAS
      • CheckRegistration
      • GetRegistrationInfo
      • SyncRegistration
      • GetChallenge
      • Register
      • Unregister
    • ECS
      • AcceptGiftTitle
      • ConfirmCSS
      • CheckAccountBalance
      • CheckDeviceStatus
      • DeleteETickets
      • GetECConfig
      • GetETickets
      • GiftTitle
      • ListETickets
      • ListPurchaseHistory
      • MigrateETickets
      • MigratePoints
      • NotifyETicketsSynced
      • PurchaseTitle
      • PurchasePoints
      • RedeemAllSCATitles
    • CAS
      • GetCountryAttributes
      • ListContentSets
      • ListContentSetGroups
Powered by GitBook
On this page
  • Members
  • Keyboard Types
  • Default
  • Default (?)
  • Number Pad
  • Default without Completion, Return Key
  • Large Font
  • Default without Return, Completion, Number Pad
  • Large Font without Return and Number Pad
  • Large Number with Decimal
  • Large Number with Decimal(?)
  • Friend Code Entry
  • Default without Return

Was this helpful?

  1. JS

Keyboard

More input types than you can dream of

PreviousDL TasksNextMii

Last updated 3 years ago

Was this helpful?

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.

Members

Unlike other objects, wiiKeyboard only exposes one member. Its usefulness is instead via its parameters variants.

Member Name
Discussion

keyboard.call(type)

An example of keyboard.call(1).

keyboard.call(type, rowLimit)

An example of a row limit when invoked as keyboard.call(1, 1). As the text (highlighted red to designate the error) exceeds the first row, it is deleted upon entry.

keyboard.call(type, rowLimit, isPassword)

An example of keyboard.call(1, 3, true). Note that "text", highlighted red, has not yet converted to asterisks.

keyboard.call(type, rowLimit, isPassword, hint)

Instantiates a keyboard of type with rowLimit, whether the entered text isPassword, and a background text of hint.

An example of keyboard.call(1, 3, false, 'Text Hint').

Keyboard Types

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

Type 0, or defaulted to if any value above 13 is specified. A generic keyboard.

Default (?)

Number Pad

Type 2. Provides a generic number pad, useful for things such as friend code entry.

Default without Completion, Return Key

Large Font

Type 4. Entered text cannot exceed the text field's length.

Default without Return, Completion, Number Pad

Large Font without Return and Number Pad

Type 6. Lacks word completion/suggestion, and the switcher UI between QWERTY and a number pad.

Large Number with Decimal

Type 7. Provides a decimal point alongside numeric entry.

Large Number with Decimal(?)

Friend Code Entry

Type 9. Provides a usable Friend Code entry pad.

Default without Return

Invokes a keyboard of the specified .

Invokes a keyboard of with a limit of the amount of rows available for typing.

Instantiates a keyboard of with rowLimit and whether the entered text isPassword. If true, entered text becomes asterisks after entry or space bar, as pictured beneath.

Type 1. Appears to behave similarly to on all regions.

Type 3. The same as , but lacking a return key and word completion/suggestion.

Type 5. Lacks word completion/suggestion, and the switcher UI between QWERTY and a number pad:

Type 8. Appears to operate similarly to - TODO: Does this function differently in other regions?

Type 10. Unlike , this type does have completion. It lacks a return key.

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
Default
Default
Large Number with Decimal
Default without Completion, Return
type
type
type