I’m using Mono C# and would like to know what physical library “input.h” is dependent on?
Ive searched google but am not getting anything.
NOTE UPDATE: The goal here is to get Keyboard and Mouse input in Linux. So rly the question is what library do I need to wrap for input. Are there any good C/C++ examples for getting input using “input.h”?
In C# to link to a library you would do something like::
[DllImport("libX11", EntryPoint = "XOpenDisplay")]
public static extern IntPtr XOpenDisplay(IntPtr display_name);
So I need to do the same thing as above but with the input library. Something like::
[DllImport("libInput ???", EntryPoint = "CreateDevice")]
public static extern IntPtr CreateDevice(int deviceID, ...);
I was going to use this Keyboard Input link to get started after I find what library to link to…
Ok so I figured out how to get all the key and mouse input through X11. I’m doing something very similar in Cocoa on OSX.
So for anyone wondering the basics of how I did it, Here ya go and let me know if you see anything wrong with the X11 event logic::