The Wii Remote API also allows the Web page to detect all Wii Remotes that are connected to the Wii.

This makes it possible to make Web pages interact with up to four users at the same time, a concept not normally possible with traditional JavaScript event detection.

The API is available to JavaScript running on the Web page.

如果之前有買 Wii 的人, 可能知道在 2007 年 6 月 30 日之前, 可以無料下載 瀏覽器 Opera.

現在 Opera 提供了一組 Wii Remote API, 讓網頁開發者可以更方便的利用 Wii remote 來設計以及開發程式. (應該遊戲比較多吧? :p)

當然, Opera 也作了個範例小遊戲, Demo game 在這. 這個是從那個遊戲中節錄的 Code Snippets:

if ( window.opera && opera.wiiremote ) {
    //get the rotation of the Wii Remotes
    wiiremote1 = opera.wiiremote.update(players[0]);
    wiiremote2 = opera.wiiremote.update(players[1]);
}

利用 opera.wiiremote 這個 Opera 自己提供的 java script library 就可以使用囉! 有興趣的可以再看看 Ajaxian 這篇 The Wii Remote API: Now your userbase is four, 有比較簡單的說明.

Popularity: 31% [?]