Hello, I use linux embedded with X11 , when i power up the system , i launch "xinit myappl" but i don't know if there is a mouse connected or a keyboard connected also. if there are no mouse connected xinit go to an error . I think that the best is to know if a mouse is connected before to run xnit and change the file Xconfig.
So my question is : how to know if a mouse or a keyboard is connected and the type of mouse ?