Probably a bit late, but it's strange nobody mentioned SDL.
I'm using it almost for a decade.
IMO most consistent APIs available for different platforms (and bitness of course, as it's open source),
it even includes force feedback (where it is supported).
There are multiple Pascal bindings.