This is not necessarily Braid news. If you don’t do any Linux programming then you may want to skip this posting!
I’m trying to do some basic game stuff under Linux and don’t really know what a reasonable way is to do them, and the cost of experimentation is very high. So I am hoping someone out there can just answer these basic questions…
- What is a reasonable way to read mouse input? Reading X11 mouse events is not sufficient since (a) it’s had GUI acceleration applied to it, and (b) it clamps at the edges of the screen. libGII seems to be one way to do this — is it reliable and useful? Can I “ship” a game with it (to the extent that anything is shippable at all under Linux)? Are there alternatives?
- Under X11, is there a way to constrain the mouse pointer to a window without other undesirable effects (such as stealing the focus and locking the GUI)? Last time I tried this (a couple of years ago) I couldn’t figure out a way to do it.
- For audio output, should I be using ALSA or something else? In a past project I used SDL but the SDL audio API seemed quite lacking for serious game programming.