Page 2 of 2
Posted: Fri May 09, 2008 10:12 am
by Combuster
I just typed "ps2 mouse protocol" and everything I could possibly want came back as the first hit. It's not quite official documentation, but for most purposes it should suffice.
It does say:
Documentation:
Out-of-print
(IBM Tech Reference)
which gives a reasonable indication on how likely it is to get those "official" docs.
the link:
http://www.computer-engineering.org/ps2mouse/
p.s. you might want to have a look at your dutch accent. It reads horrible even for me
Posted: Fri May 09, 2008 12:54 pm
by Nitro
JamesM wrote:How would i write a send click/move for instance? (this is my main goal..)
Your goal is impossible. The mouse (
and any other input device) cannot be told where to move or where to click. It senses movement and delivers that movement to the operating system (technically the mouse driver) in the form of deltas along two different axes, and click/unclick information.
I'm sry but that is incorrect.. it's possible to send keys to the keyboard (wich IS an input device, just like mouse is...)
Both mouse and keyboard are controlled by the i80XX wich is programable.
As far as i've read originaly made to control keyboard only and later adapted to control mouse also.
So u read and write data from this controller and not the mouse and keyb devices themselves..
If it's possible to tell the controller that the X key was pressed, theorically it's also possible to tell it that Mouse button X was pressed or that mouse moved a dx,dy value...
Posted: Fri May 09, 2008 2:21 pm
by bewing
You might be able to get the device to accept and repeat one byte. But it would be difficult to know the correct mouse packet format to use in the first place, and you cannot force a multi-byte packet back through the chip.
Posted: Fri May 09, 2008 4:35 pm
by Nitro
bewing wrote:You might be able to get the device to accept and repeat one byte. But it would be difficult to know the correct mouse packet format to use in the first place, and you cannot force a multi-byte packet back through the chip.
I dont like to reinvent the wheel so, I've been googleing for 1 week and didnt found any way to do this.
I will not give up on this, but i will start looking for other ways to do it..
One possible way would be to be writting a virtual mouse driver that could tell the OS that a button was pressed..
But i dont feel like i want to go right way using the microsoft DDK, coz the learning curve is high, but probably i wont have other choice.
I feel like i am on my own..
Any ideas how to do this? (w/o using the win32 api..)
Posted: Fri May 09, 2008 4:51 pm
by Combuster
AFAIK the windows api is the only way you should be considering. Writes to I/O ports are off-limits, drivers need admin privileges and are evidence of bad design.
As with anything, I got the needed information first hit on google.
And I don't approve of the thread hijack and especially not the doubled question - use the other thread please.
Posted: Fri May 09, 2008 5:11 pm
by Nitro
Combuster wrote:AFAIK the windows api is the only way you should be considering. Writes to I/O ports are off-limits, drivers need admin privileges and are evidence of bad design.
As with anything, I got the needed information first hit on google.
And I don't approve of the thread hijack and especially not the doubled question - use the other thread please.
By the need information u got on the 1st google hit u probably mean the win32 api solution (wich can be done in several ways)
If i wanted to do it with win32 i wouldnt even need to google for it, and certainly i wouldnt be here asking for help.
I agree i went out a bit out of the topic of this thread, i won't post here anymore. I apologize for any incovenience.