Demo cleanup/enhance
This commit is contained in:
parent
95e7b6644c
commit
58b2a0075f
3 changed files with 3 additions and 3 deletions
|
|
@ -156,7 +156,7 @@ Wii.parsePrimaryWiimote = function(e) {
|
|||
* matchups; this gets messy pretty quickly...
|
||||
*/
|
||||
if(typeof buttonPressed !== 'undefined' && wii_remote.evtsInterestedIn[buttonPressed] !== 'undefined') {
|
||||
try { wii_remote.evtsInterestedIn[buttonPressed](wii_remote, wii_remoteCurrStatus); } catch(e) { alert(e.message); }
|
||||
try { wii_remote.evtsInterestedIn[buttonPressed](wii_remote, wii_remoteCurrStatus); } catch(e) { alert(e.message); alert(Wii.currentBrowsingRemote); }
|
||||
}
|
||||
|
||||
/* Doing this in conjunction with preventDefault() halts an odd clicking bug or two. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue