2013/9/1 Jermaine <jra...@gmail.com>:
> I have a Logitech NuLooq 3D mouse that I am trying to control with Python
> using PYUSB.  The top surface of the NuLOOQ.  It has a circular touch-face
> similar to iPod clickwheel with 5 clickable buttons, with a outer ring.  I
> have the libusb and pyusb modules installed. And everything is working fine.
> In python I am able to control the LED lights and determine which button was
> clicked out of the five buttons.  I can also determine if the clickwheel or
> the outer ring is touched or moved.
>
> I am having issues trying to decoded and or decipher the mouse data array.
>
> DATA_MODE_NAVRING = 1
> DATA_MODE_DIAL = 2
> DATA_MODE_TRIGGER = 3
>
> while 1:
>     try:
>         data = None
>         data = device.read(0x81,8)
>         if data[0] == DATA_MODE_NAVRING:
>             print (data)
>     except usb.core.USBError as e:
>         pass
>

What kind of issues are you exactly having? Don't you can figure out
of the returned data means?

-- 
Best Regards,
Wander Lairson Costa

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to