Multi mouse in Ubuntu 8.10
Multi mouse in Ubuntu 8.10 | bdean42 | 02/28/2009 - 18:41 |
I was wondering if anyone has been able to get multi mouse mode to work in Ubuntu 8.10. If I have one mouse plugged in or if I have both plugged in without making the various /dev/input/event? readable it works just fine. Looking at the log it's using the SDL mouse stuff there because it can't find any evdev mice. When I make the evdev stuff readable, the log shows that the game found two mice, but no cursor appears. I think the reason has to do with Ubuntu 8.10 maybe not using the evdev stuff and those various /dev/input/event? not getting any mouse events posted to them. | ||
Re: Multi mouse in Ubuntu 8.10 | Soultaker | 03/01/2009 - 14:11 |
I think you're right, and the HAL stuff makes the evdev inaccessible for some reason. I've pasted the relevant parts of my (non-HAL) xorg.conf below. Note that the AutoAddDevices line prevents the HAL from being used, but this does require you to declare the core keyboard and pointer manually or you won't have any input in X. Last modified Mon, 03/02/2009 - 15:39 by Soultaker | ||
Re: Multi mouse in Ubuntu 8.10 | dentaku | 03/02/2009 - 18:56 |
When I enable the feature in the WoG configs, no mouse is used at all! I have to kill X, disable the feature and restart again to get back my mouse pointer in WoG. :'( I wonder why we need a special kernel for this as my two mice work flawlessly on the desktop ... | ||
Re: Multi mouse in Ubuntu 8.10 | Soultaker | 03/03/2009 - 04:25 |
You don't need to have a "special kernel" to use the feature, but X needs some configuration. The problem is that the X server only supports a single pointer (i.e. mouse cursor) at a time, so any game that uses the X pointer for mouse input (as the game does by default) only has access to a single pointer. That's why for multi-mouse mode, the game tries to go behind the X server's back and open the mouse devices directly and individually (this is what the ManyMouse library does). Quote: my two mice work flawlessly on the desktop ... I seriously doubt this. Do you get two separate pointers? Or do you get a single pointer that is controlled with the same mouse? In the latter case, that works in the game too, but then you have just a single cursor. The whole point of the multi-mouse mode is to allow for multiple independently controlled cursors. Quote: I have to kill X, disable the feature and restart again to get back my mouse pointer in WoG. Can't you just quit the game with Alt-F4? | ||
Re: Multi mouse in Ubuntu 8.10 | dentaku | 03/03/2009 - 15:56 |
[quote author=Soultaker link=topic=1560.msg10432#msg10432 date=1236072316] Quote: my two mice work flawlessly on the desktop ... I seriously doubt this. Do you get two separate pointers? Or do you get a single pointer that is controlled with the same mouse? In the latter case, that works in the game too, but then you have just a single cursor. The whole point of the multi-mouse mode is to allow for multiple independently controlled cursors. EHm, yes I mean that I can control the one single mouse pointer with both mice. [quote author=Soultaker link=topic=1560.msg10432#msg10432 date=1236072316] Quote: I have to kill X, disable the feature and restart again to get back my mouse pointer in WoG. Can't you just quit the game with Alt-F4? Alt-F4? Never heard of this shortcut other than Windows ... Well, this sounds all very strange. I thought that mouse events are just catchable by any application? But I guess, most APIs just support mouse events ... and not mouse event from mouse 1, 2, ... | ||
Re: Multi mouse in Ubuntu 8.10 | Yonibear | 03/12/2009 - 13:01 |
X11 supports accessing different input devices independently over the XInput API. You should take a look at SDL 1.3 from the current SVN trunk, it has multimouse support based on XInput. |