Other (#5) - MotionPlus branch (#128) - Message List

MotionPlus branch
 unsolved

I built and tested the python extension on my Ubuntu 9.04 system.

It worked like charm.

U rock dsmith!

  • Message #24446

    Glad to hear it. I've got a couple more changes in my local copy that I want to verify, then I'll probably commit and merge.

    • Message #24447

      hi

      I'm working with yours wiimotionplus branch and i've a problem with the callback interface (with pyhton binding):

      with

      def cb(msg):
          print "hello"
      #if __name__ == '__main__':
      import cwiid
      wm = cwiid.Wiimote()
      wm.rpt_mode =  cwiid.RPT_BTN | cwiid.RPT_STATUS
      wm.mesg_callback = cb
      wm.enable(cwiid.FLAG_MESG_IFC)
      while True:
          pass
      

      i've got:

      TypeError: cb() takes exactly 1 argument (2 given)
      

      ... each time when I push any button (with the trunk I haven't that)

      What's happening with callback interface?

      thanks ahead

      PS: great job for yours quickly integration MotionPlus add-on

      • Message #24448

        To match the C interface, the python callback now takes a second argument: time.

Attachments

No attachments created.