LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Insert HID messages into kernel? (https://www.linuxquestions.org/questions/linux-kernel-70/insert-hid-messages-into-kernel-900776/)

Aglets 09-02-2011 04:11 PM

Insert HID messages into kernel?
 
I am writing an application to read from a SPI device and create HID messages from the data. Can anyone tell me the best way to insert HID mouse movements into the kernel? Thanks!

Aglets 09-14-2011 02:30 PM

Quote:

Originally Posted by Aglets (Post 4459962)
I am writing an application to read from a SPI device and create HID messages from the data. Can anyone tell me the best way to insert HID mouse movements into the kernel? Thanks!

Ok, I finally found the answer. I opened the /dev/uinput file and wrote the relative mouse positions.
You can do a search for uinput and find sample code.
/Aglets


All times are GMT -5. The time now is 05:19 PM.