log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISC OS London Show Report 2024 (News:1)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
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
madbanHa 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
PhlamethrowerHot 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