Hi Sam,
2008/12/12 Quiring, Sam <Sam Quiring windriver com
<mailto:Sam Quiring windriver com>>
Greetings,
I have this call in my app:
#define BUTTON_EVENTS (SPI_BUTTON_PRESSED | SPI_BUTTON_RELEASED)
SPI_registerDeviceEventListener(mouse_device_listener,
BUTTON_EVENTS, 0);
My read of the documentation,
http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-queries.html#SPI-registerDeviceEventListener,
is that my listener should receive all button_press and
button_release events. Most runs of my application never receive
any button_release events. Sometimes the app receives 1
button_release. I have no log at this time that shows more than 1
button_release.
On the other hand, I believe I am receiving the correct amount of
button_pressed events.
The events generated in CSPI is not reliable as compared to the
pyatspi. If possible, I recommend to use pyatspi. Also another
advantage will be, when we move to DBus from CORBA, as of now we don't
have CSPI for DBus based implementation.