Demo cleanup/enhance
This commit is contained in:
parent
58b2a0075f
commit
110ff45540
1 changed files with 2 additions and 0 deletions
|
|
@ -156,6 +156,8 @@ Wii.parsePrimaryWiimote = function(e) {
|
||||||
* matchups; this gets messy pretty quickly...
|
* matchups; this gets messy pretty quickly...
|
||||||
*/
|
*/
|
||||||
if(typeof buttonPressed !== 'undefined' && wii_remote.evtsInterestedIn[buttonPressed] !== 'undefined') {
|
if(typeof buttonPressed !== 'undefined' && wii_remote.evtsInterestedIn[buttonPressed] !== 'undefined') {
|
||||||
|
alert(typeof buttonPressed + ' || ' + buttonPressed);
|
||||||
|
alert(wii_remote.evtsInterestedIn[buttonPressed]);
|
||||||
try { wii_remote.evtsInterestedIn[buttonPressed](wii_remote, wii_remoteCurrStatus); } catch(e) { alert(e.message); alert(Wii.currentBrowsingRemote); }
|
try { wii_remote.evtsInterestedIn[buttonPressed](wii_remote, wii_remoteCurrStatus); } catch(e) { alert(e.message); alert(Wii.currentBrowsingRemote); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue