raphydaphy / Q-Operating-System

Q OS is a versatile operating system designed with the new features of 64 bit "long mode" CPU's in mind that focuses on making everything as simple as possible for the end user
http://q-os.tech
GNU Lesser General Public License v3.0
151 stars 42 forks source link

Create mouse.c #323

Open ayan312002 opened 8 years ago

ayan312002 commented 8 years ago

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 commented 8 years ago

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

plankp commented 8 years ago

Have you tested this yourself?

ayan312002 commented 8 years ago

Of course.. Read the description.

plankp commented 8 years ago

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

ayan312002 commented 8 years ago

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

plankp commented 8 years ago

No error. But no cursor. Moving mouse does nothing

ayan312002 commented 8 years ago

mouse_test

ayan312002 commented 8 years ago

Did you call mouse_install?

plankp commented 8 years ago

Yes I did.

plankp commented 8 years ago

I called it right after initialize_keyboard

ayan312002 commented 8 years ago

Did you add headers to mouse c file..

plankp commented 8 years ago

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

ayan312002 commented 8 years ago

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

plankp commented 8 years ago

......

plankp commented 8 years ago

So you have not tried it on QOS itself then.

ayan312002 commented 8 years ago

nope.