Q-Operating-System icon indicating copy to clipboard operation
Q-Operating-System copied to clipboard

Create mouse.c

Open ayan312002 opened this issue 9 years ago • 16 comments

Implemented a support for mouse...partially :( I'm currently developing it for my os so thought for sharing the code. Take a look at the code and change it according to your needs. I tried it on qemu and when you move cursor it prints. I'm currently sick and will try to improve it in future.

ayan312002 avatar Jan 28 '16 16:01 ayan312002

And yes don't forget to make the header file.

ayan312002 avatar Jan 28 '16 16:01 ayan312002

Have you tested this yourself?

plankp avatar Feb 05 '16 12:02 plankp

Of course.. Read the description.

ayan312002 avatar Feb 05 '16 16:02 ayan312002

I mean on QOS. Because I tried and it did not work.

plankp avatar Feb 05 '16 21:02 plankp

Did you make the header. What error are you facing? I will send screenshot of it working or make a video.

ayan312002 avatar Feb 06 '16 04:02 ayan312002

No error. But no cursor. Moving mouse does nothing

plankp avatar Feb 06 '16 14:02 plankp

mouse_test

ayan312002 avatar Feb 06 '16 14:02 ayan312002

Did you call mouse_install?

ayan312002 avatar Feb 06 '16 14:02 ayan312002

Yes I did.

plankp avatar Feb 06 '16 15:02 plankp

I called it right after initialize_keyboard

plankp avatar Feb 06 '16 15:02 plankp

Did you add headers to mouse c file..

ayan312002 avatar Feb 06 '16 17:02 ayan312002

Yes. (And yes, otherwise, I cannot compile the program)

plankp avatar Feb 06 '16 18:02 plankp

I don't know not every copy-pasted code works. try some tweaks..

ayan312002 avatar Feb 06 '16 18:02 ayan312002

......

plankp avatar Feb 06 '16 18:02 plankp

So you have not tried it on QOS itself then.

plankp avatar Feb 06 '16 18:02 plankp

nope.

ayan312002 avatar Feb 06 '16 18:02 ayan312002