I'm a graphics programmer working on some OpenGL ES 2 demos for fun / learning of OpenGL. I come from a console and windows background so I've got limited experience with deskop linux environments but plenty of C++ experience.
I'm trying to determine the best way to capture mouse and keyboard input for some minimal interactivity. I see the triangle2 sample opening /dev/input/mouse0 as a file and reading from it to get mouse data. I was aware many things are a file under the hood; is this the suggested approach for reading input in a portable from pi to pi fashion for both mouse and keyboard? A quick google shows me this API is pretty universal for linux. Is it fair to assume doing some googling about this for Debian/Linux will be consistent?