Wiimote Extension Library Problem

I don't understand what you mean when you say, it doesn't like the function being passed as an argument.

I can see where you try to call the function. I don't see anywhere that you try to pass it as an argument.