Answer the question
In order to leave comments, you need to log in
How to write a mouse driver in pure C?
I started creating a small OS under UEFI, at the moment it can exit the boot services (ExitBootServices) and then paint the screen one pixel at a time (accordingly, the entire screen is painted in a cycle, and specific areas, windows, letters - by an algorithm).
I need to somehow support the mouse so that it somehow becomes like a desktop (hah, I know, sounds crazy)
Answer the question
In order to leave comments, you need to log in
It's hard to answer your question in short. All the same, developers are used to working with higher-level things. They mainly use the SDK - calls to the operating system kernel wrapped in things familiar to the Java language.
https://docs.microsoft.com/en-us/windows-hardware/...
The link considers an option that still relies on the core of the operating system.
You also need to go even lower to the level of communication with a specific controller.
I will share my collection of links on this topic.
https://android.googlesource.com/platform/external...
https://github.com/libusb/libusb/blob/master/libus...
https://opensource.apple.com/source/IOUSBFamily/ IO...
https://habr.com/ru/post/145855/
https://www.beyondlogic.org/usbnutshell/usb5.shtml- the most useful resource
https://habr.com/en/post/236401/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question