473,395 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Interaction with two mouse

Hi to everybody,
I have an hard question:
I want to use two indipendent mouse with my application.
How can I implement this?

--Michele Diegoli
Jul 18 '05 #1
4 1807
> Hi to everybody,
I have an hard question:
I want to use two indipendent mouse with my application.
How can I implement this?


Good question. On windows platforms, windows automatically multiplexes
the movement of two (or more) mice into a single movement. If you have
two mice in windows, and move them in exact opposite directions, your
cursor won't move.

I have a feeling that linux, or really any other system that /can/
handle multiple mice do the same thing.
This may suggest that it is an operating system architectural limitation
because no one wanted to answer the question, what would it mean for two
mouse pointers to be wandering around the screen?

- Josiah
Jul 18 '05 #2

"Josiah Carlson" <jc******@nospam.uci.edu> wrote in message
news:c0**********@news.service.uci.edu...
This may suggest that it is an operating system architectural limitation
because no one wanted to answer the question, what would it mean for two
mouse pointers to be wandering around the screen?


Given that I use my mouse alternately with both hands, I can easily imagine
having two distinguisable pointers that do different things. In an editor,
one could select text, while the other selects buttons and menu operations.
In a game, one could move and attack chars while other operates peripheral
functions. Not having to move the personnel pointer (and maybe lose
current selection) to open a building or log book could be quite nice.

Terry R. Reedy


Jul 18 '05 #3
"Michele Diegoli" <m.*******@cineca.it> wrote...
I have an hard question:
I want to use two indipendent mouse with my application.
How can I implement this?


Assuming you mean Windows, and assuming there is no way of disabling
the multiplexing effect of Windows (see other peeps' posts), then
perhaps you could write a very small driver to loop reading from an
RS232 port and working out the current coordinates.

I would imagine that Windows stops mouse detection after it finds one
on the USB bus and/or the PS/2 port, with RS232 being a fallback. So
if you have one mouse plugged into the PS/2 port, then booting with
another connected to the RS232 port leaves it free for apps to talk
to.

What you do with the events received from this little driver is up to
you. I can imagine < 100 lines of code implementing enough to generate
move and click events.

A bit of a crazy suggestion, but might be a useful fallback if you
find no other solution. :)
David.
Jul 18 '05 #4
> I would imagine that Windows stops mouse detection after it finds one
on the USB bus and/or the PS/2 port, with RS232 being a fallback. So
if you have one mouse plugged into the PS/2 port, then booting with
another connected to the RS232 port leaves it free for apps to talk
to.


I believe Windows will initialize any mouse it sees during boot. Using
a mouse on a serial port may require leaving the mouse unplugged until
Windows has finished booting.

- Josiah
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: RHO | last post by:
Hi, I have a table with alternating bg-colors and in which I highlight the row focused by the mouse. This is achieved by <TR bgcolor='#A7BCCF' onmouseout="this.bgColor = '#A7BCCF'"...
3
by: Aaron Queenan | last post by:
I have a form which performs some asynchronous code. I want to display a wait cursor when it starts, and hide the wait cursor when it has completed. This part works fairly well, using: ...
3
by: Brian Basquille | last post by:
Hello again all, Been at the Air Hockey game now for a solid couple of hours and sorted a lot of bugs. Think it's about time i start thinking about implementing movements with the mouse. For...
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
8
by: Rob R. Ainscough | last post by:
I have a VS 2005 Windows Service with a Installer project as part of my solution. The Service installs fine but I can't seem to make either of these work: 1. Have the service start after...
0
by: Olof Carlsson | last post by:
Hi! I have a datagrid whose datasource is being updated by a function started by BeginInvoke. If the user (as the datagrid is being populated) drags the scrollbar (or even clicks it and...
6
by: =?Utf-8?B?QVRU?= | last post by:
Hi, My MDI (Parentform) form can have 2 two type of forms (Datagridform and graphicform). When users create a new form, they have to pick either child form. When those child forms are created...
0
by: Omar Abid | last post by:
Reason of this project: The Microsoft.VisualBasic.Interaction class exposes many useful commands and methods that were available in Visual Basic like AppActivate, Beep, Callbyname... This...
3
by: mmm | last post by:
I am looking for advice on Python Editors and IDEs I have read other posts and threads on the subject and my two questions at this time are mainly about the IDLE-like F5-run facilities. While I...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.