start of joystick stuff, wgl and windows way later