[Input][SDL] Fix JoystickHat bugs
authorAndrew O'Connor <bravesirandrew@gmail.com>
Sun, 27 Jul 2014 13:54:36 +0000 (14:54 +0100)
committerAndrew O'Connor <bravesirandrew@gmail.com>
Sun, 27 Jul 2014 13:54:36 +0000 (14:54 +0100)
commitfe1d465b852b18b4d0f4f60fbd50bd35965f3df4
treeb95be185037329893402cd9b40060f5883e1dc05
parente5cd6a3b9e940207e25921e3e02b475277e66094
[Input][SDL] Fix JoystickHat bugs

On SDL, DPad inputs were not correctly translated from joystick
hat inputs.
Updated MappedGamePadDriver so that it will correctly recognize
combined joystick hat directions e.g. DPadLeft should be true when
DownLeft, Left, or UpLeft are returned from the joystick hat.
Source/OpenTK/Platform/MappedGamePadDriver.cs
Source/OpenTK/Platform/SDL2/Sdl2.cs
Source/OpenTK/Platform/SDL2/Sdl2JoystickDriver.cs