XFree86 4.3/4.4: distinguish between two mouses?

2005-02-10 Thread Rasca
Hello, I've two mouses connected to my Linux box. They work fine in general. In my X-application (here SDL..) I want to know on which mouse a button was pressed. Accroding to XInput.h / XDeviceButtonEvent there is a field which is named deviceid. But this has allways the same value. It doesn't

Re: XFree86 4.3/4.4: distinguish between two mouses?

2005-02-10 Thread Steffen Moeller
Hello, I am thrilled to hear of this request. In my X-application (here SDL..) I want to know on which mouse a button was pressed. Accroding to XInput.h / XDeviceButtonEvent there is a field which is named deviceid. But this has allways the same value. It doesn't matter which button I

Re: XFree86 4.3/4.4: distinguish between two mouses?

2005-02-10 Thread Rasca
Hi, Steffen Moeller wrote: Hello, I am thrilled to hear of this request. I'm suprised that this is not a common request for games (two input devices for two gamers). In my X-application (here SDL..) I want to know on which mouse a button was pressed. Accroding to XInput.h / XDeviceButtonEvent