ALL: SDL1.2 to SDL2 migration

The main part is about the graphic stack and the remainder is about
events, the mousewheel and the textinput which is now distinct from
pressedkey.

A feature which would be nice to add is fullscreen from the desktop
resolution. SDL2 allows to do so with a single line.
GRAPHICS: Compute window maximum width and height
EVENTS: Fix enablement of repeated events
ALL: Fix the camera move

The camera should not move when the console is open. Since text input
and pressed key are now distinct events, we receive two events when a
key is actually pressed. So we have to test if text input is active.

One feature brings by SDL2 is the ability to recognize a key by is
position and not is name, that is to say we can ask the key next to
tab whatever the layout is (like qwerty, azerty or dvorak).
NWN: Avoid direct anti-aliasing change

In nwn, you can change the anti-aliasing "on the fly" with a slider.
As this change has to recreate the windows, we can miss the mouse up
event and the defocus of the slider. This commit apply the change only
if the ok button is pressed.
NWN: Properly initialize the fsaa value
GRAPHICS: Remember display when changing fsaa