Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
In bochs this code sometimes enables mouse and sometimes dont. In vmware well it it always set the mouse byte to 0xFF. If mouse is disabled then keyboard is also disabled. I took a look at some sources, mobius seems to send some mouse packets. what is the need for those packets? the following code is identical to the code in menuetOS however this doesn;t read status after every command. I tried that too but it doesn't help.
none of you seem to have interest in answering this post, but i can't proceed my gui design without enabling the mouse. once again i rephrase my question.
Is there any mistake in the above code?
should i send the following sequence of bytes? What are their purpose?
pulsar wrote:none of you seem to have interest in answering this post, but i can't proceed my gui design without enabling the mouse. once again i rephrase my question.
Is there any mistake in the above code?
should i send the following sequence of bytes? What are their purpose?
Maybe you should actually take a look at the PS2 mouse specs, rather then trying to decipher someone else's driver, for now. Checking out the theory/interfaces before coding is always a good idea, IMO.
These are commands\arguments for the mouse....Here:
F3 - Set scan rate
C8 - 200 scan\s (rate for f3)
64 - 100 scan\s (rate for f3)
50 - 80 scans\s (rate for f3)
f6 - set standard (Initializes the mouse to normal values.)
e6 - Resets scaling
f4 - Activate
eb - read data in form of packet.