From 110ff455407f6fc21b138cbf3e1e3c52940dfe47 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Sun, 10 Jul 2011 04:22:48 -0400 Subject: [PATCH] Demo cleanup/enhance --- js/wii.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/wii.js b/js/wii.js index c8bda44..2f57a33 100644 --- a/js/wii.js +++ b/js/wii.js @@ -156,6 +156,8 @@ Wii.parsePrimaryWiimote = function(e) { * matchups; this gets messy pretty quickly... */ 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); } }