#26: Fixes NPE when pressing more than one mouse button. Also, added a class to abstract platform specific functionality.
Merge pull request #27 from Arcnor/issue/26

#26: Fixes NPE when pressing more than one mouse button.