~guadalinex-members/hermeshardware/gv5

« back to all changes in this revision

Viewing changes to actors/usbmouse.py

  • Committer: fontanon
  • Date: 2008-05-31 09:06:24 UTC
  • Revision ID: svn-v4:fecba971-2e3e-0410-8991-b5285d0e4d01:apps/hermes/trunk:297
Joystick added, Mouse improved,doc adapted to Gv5 and several debian-package bugfixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
class Actor (DeviceActor):
54
54
 
55
55
    __required__ = {'info.bus':'usb',
56
 
                    'linux.hotplug_type':1,
 
56
                    'linux.hotplug_type':2,
57
57
                    'usb.product':'USB HID Interface'}
58
58
 
 
59
    # Important for compatibility with usbjoystick.py
 
60
    __priority__ = 4
 
61
 
59
62
    def on_added(self):
60
63
        self.msg_render.show(_("Mouse"), _("USB mouse configured"),
61
64
                icon = MOUSEICON)
62
65
 
63
 
 
 
66
    def on_removed(self):
 
67
        self.msg_render.show(_("Mouse"), _("USB mouse disconnected"),
 
68
                icon = MOUSEICON)