Correct handling of mouse up.
This commit is contained in:
@@ -260,9 +260,18 @@ int Main_Proc(void)
|
||||
break;
|
||||
|
||||
case SDL_MOUSEBUTTONUP:
|
||||
switch (event.button.button)
|
||||
{
|
||||
case 1: case 2:
|
||||
MouseButton &= ~event.button.button;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
MouseButton &= ~2;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case SDL_JOYHATMOTION: // POV hats act as direction pad
|
||||
offset = HatOffset[event.jhat.which];
|
||||
if (offset >= (256 + 128 + 64)) break;
|
||||
|
||||
Reference in New Issue
Block a user