mouse-driver icon indicating copy to clipboard operation
mouse-driver copied to clipboard

Compile errors and warnings with input_allocate_device() ...

Open Raspjones opened this issue 5 years ago • 0 comments

Dear Kushsharma,

Thank you for sharing this information. I am programming a virtual mouse for a fun and study, and I made a similar virtual mouse driver. The issue is when I tried to build, it always gives me warning as below:

warning: implicit declaration of function ‘input_allocate_device’ warning: implicit declaration of function ‘input_register_device' ...

These functions should be defined in '/usr/include/linux/input.h', but I can not find these in the file. '/usr/include/linux/input.h' is much simpler than the file in 'https://elixir.bootlin.com/linux/v3.6/source/include/linux/input.h#L1459'.

For your information, I am doing this on Ubuntu 16.04. Would you do a favor to help me in resolving the issue?

Thank you in advance.

Best regards, Jason.

Raspjones avatar May 15 '19 15:05 Raspjones