LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-02-2011, 04:11 PM   #1
Aglets
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
Question 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!
 
Old 09-14-2011, 02:30 PM   #2
Aglets
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Lightbulb

Quote:
Originally Posted by Aglets View Post
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
 
  


Reply

Tags
hid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux 3.1 Kernel Gains A Wiimote HID Driver LXer Syndicated Linux News 1 07-23-2011 01:33 PM
USB HID mouse driver on 2.6 kernel macarthy Linux - Newbie 2 04-25-2010 05:27 AM
Redirecting the kernel messages to file other than /var/log/messages jyotika_b83 Linux - General 3 04-28-2005 06:39 PM
RH9: Error loading HID devices (Kernel 2.6.6) plexus Red Hat 4 08-23-2004 07:31 PM
recompiled kernel, random hangs on startup w/ modprobe hid infamous41md Linux - Newbie 0 03-28-2004 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration