How can I intercept the AUX button?
Michael 'Mickey' Lauer
mickey at vanille-media.de
Thu Jul 10 13:04:51 CEST 2008
Am Donnerstag 10 Juli 2008 11:39:36 schrieb Paul-Valentin Borza:
> Can anyone tell me how can I intercept the AUX button (i.e. detect when the
> AUX is pressed and when it's not)?
If you're using the framework, you'll get signals like that:
[SIGNAL] org.freesmartphone.Device.Input.Event
from :1.140 /org/freesmartphone/Device/Input
(dbus.String(u'AUX'), dbus.String(u'pressed'), dbus.Int32(0))
[SIGNAL] org.freesmartphone.Device.Input.Event
from :1.140 /org/freesmartphone/Device/Input
(dbus.String(u'AUX'), dbus.String(u'held'), dbus.Int32(2))
[SIGNAL] org.freesmartphone.Device.Input.Event
from :1.140 /org/freesmartphone/Device/Input
(dbus.String(u'AUX'), dbus.String(u'held'), dbus.Int32(3))
[SIGNAL] org.freesmartphone.Device.Input.Event
from :1.140 /org/freesmartphone/Device/Input
(dbus.String(u'AUX'), dbus.String(u'held'), dbus.Int32(4))
[SIGNAL] org.freesmartphone.Device.Input.Event
from :1.140 /org/freesmartphone/Device/Input
(dbus.String(u'AUX'), dbus.String(u'released'), dbus.Int32(0))
:M:
More information about the openmoko-devel
mailing list