View Single Post
Posts: 56 | Thanked: 31 times | Joined on Jul 2008 @ Austria
#2
See http://talk.maemo.org/showthread.php...t=headset+dbus
In short:
bus = dbus.SystemBus()

headset = bus.get_object('org.freedesktop.Hal', '/org/freedesktop/Hal/devices/platform_retu_headset_logicaldev_input')
headset_iface = dbus.Interface(headset, dbus_interface='org.freedesktop.Hal.Device')
headset_iface.connect_to_signal("Condition", handler)

http://wiki.maemo.org/Documentation/Maemo_5_Developer_Guide/Porting_Software/Porting_Existing_GTK%2B_Application_to_Maemo_5

"Enabling volume/zoom keys"

Last edited by dannym; 2010-07-15 at 22:54.
 

The Following User Says Thank You to dannym For This Useful Post: