ManyMouse

BlitzMax Forums/BlitzMax Programming/ManyMouse

MrTAToad(Posted 2008) [#1]
There doesn't seem to have been much in the way of interfaces for using ManyMouse - which as the name suggests, allows you to use more than one mouse in a program - hence this post.

I've got a small C interface up and running for use in BlitzMax, as well as using the original routines for initialising the interface.

First, the test program :



And the C interface program :



ManyMouse works on Windows and Mac (Intel and should work on PPC). It should also work on Linux, but I haven't tried it yet.

ManyMouse itself can only be retrieved using SVN (unfortunately), but is availiable at http://icculus.org/manymouse/


dmaz(Posted 2008) [#2]
this is awesome, I was looking for this very thing not too long ago!


Beaker(Posted 2008) [#3]
Nice one. This was discussed here a few times, but nothing much came of it.


MrTAToad(Posted 2008) [#4]
I have found a slight modification for the Mac is needed to get the system working, otherwise multiple mice come out as device 0.

In manymouse.c, the ordering of the mouse drivers needs changing to :

static const ManyMouseDriver **mice_drivers[] =
{
    &ManyMouseDriver_xinput,
    &ManyMouseDriver_evdev,
    &ManyMouseDriver_windows,
    &ManyMouseDriver_hidutilities,
    &ManyMouseDriver_hidmanager
};


Whether its due to any of the mice working in PPC mode or something, I dont know - but this order works correct.


xlsior(Posted 2009) [#5]
Hm, pretty neat!

Couldn't get it compile originally, until I moved the manymouse folders to the same drive as Blitzmax and MinGW themselves. (?)