Set GL attributes before creating window.
Moved input related files into separate folder.