I'm trying to create a window where I can render graphics using OpenGL ES (through EGL) and pick up input events. However, I've heard that using X windows is slower than rendering directly to the frame buffer, so I'm trying to program with this in mind.
So far, I've pretty much copied the code from the github link at the bottom of this blog post:
http://benosteen.wordpress.com/2012/04/ ... x-windows/
I found that in a forum post somewhere on here. After a bit of Makefile writing, I got it to compile, and it runs nicely.
Now, I'm trying to get some mouse/keyboard input working, so I decided to use SDL. I'm trying to figure out how to integrate SDL and OpenGL ES. My first thought has been to create a full screen X window using SDL, and then use EGL to render to the framebuffer over the top of it, so I can get keyboard and mouse events through the X window, but ignore it when rendering.
It seems a little hacky, although I think it'll work. But I'm a little new to the frame buffer and OpenGL ES, so is there a better way of getting the keyboard/mouse input from SDL when rendering directly to the frame buffer?
EDIT: I'm using C and the gcc compiler, thought that I'd better add that!
