Added some methods for event-handling, Renderer support and Scancode retrieval.

Note that `createWindowAndRenderer` differs slightly from the original method, because a window configuration that contains width and height gets passed in anyway and thus there's no apparent need for extra parameters.
I think we could do better than `CInt` for the driver, as `-1` has a special meaning. I'd be ok with merging as-is though and improving this later.