wx doesn't have support for those because every platform and/or mouse driver does it differently. Some translate into key events, and some use special window or system messages. That was quite a while ago however so if there is now a way to encapsualte those differences into some wx code then I'm sure a patch implementing that would be accepted.
···
On 10/6/09 1:19 PM, Miroslav Kubiczek wrote:
Hello,
Can somebody recommend a way of how to catch special mouse keys - like
volume UP/DOWN?
I tried wx.EVT_MOUSE_EVENTS but it doesn't catch it.
Thanks for your hints, indeed it's translated into key events. I
wouldn't know where to start with the patch.
So the simplest workaround for me was to use xkey utility which I
start on backroung and catch it's stdout.
···
On Thu, Oct 8, 2009 at 8:58 PM, Robin Dunn <robin@alldunn.com> wrote:
On 10/6/09 1:19 PM, Miroslav Kubiczek wrote:
Hello,
Can somebody recommend a way of how to catch special mouse keys - like
volume UP/DOWN?
I tried wx.EVT_MOUSE_EVENTS but it doesn't catch it.
wx doesn't have support for those because every platform and/or mouse
driver does it differently. Some translate into key events, and some
use special window or system messages. That was quite a while ago
however so if there is now a way to encapsualte those differences into
some wx code then I'm sure a patch implementing that would be accepted.