Acorn Arcade forums: Programming: A Second Mouse
|
A Second Mouse |
|
Loris (17:30 17/5/2006) Phlamethrower (19:02 17/5/2006)
|
|
Tony Haines |
Message #75484, posted by Loris at 17:30, 17/5/2006 |
Ha ha, me mine, mwahahahaha
Posts: 1025
|
So I'm thinking about the lovely USB ports on my RiscPC, and how its only used for taking pictures off my camera, and moving big files around - and it occurs to me that it could be used to provide that most desirable of gaming devices, a second mouse. For gaming purposes, it just needs to be readable by some API - a second mouse pointer isn't required. (Best would be something which matched the functionality of the mouse-state OS calls, obviously)
Speaking to Stuart, it isn't a case of just buying one and plugging it in. What is necessary to create this? How hard would the driver be to write? if written, would it be usable by all mice, or just one particular model? I know Iyonix is different, is it possible on that yet? It would be nice to have progs able to use either, really.
The thing is, this would be really useful for multiplayer games. If the system were simple and stable, to use and to program, then maybe many (ok, several) games would be released to use it. |
|
[ Log in to reply ] |
|
Jeffrey Lee |
Message #75488, posted by Phlamethrower at 19:02, 17/5/2006, in reply to message #75484 |
Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot Hot stuff
Posts: 15100
|
If you can find the source code to a (USB) mouse driver, all you'd have to do is change it so that it inserts the data into your own mouse buffer instead of the OS one. Then write the appropriate code to handle that data (e.g. trapping the mouse inside the mouse rectangle), and a SWI call or two to interrogate the current state. |
|
[ Log in to reply ] |
|
|
Acorn Arcade forums: Programming: A Second Mouse |