Opened 21 years ago

Closed 21 years ago

Last modified 5 years ago

#7980 closed patch

Fix newgui double keydown event

Reported by: (none) Owned by: fingolfin
Priority: normal Component: GUI
Version: Keywords:
Cc: Game:


This is a fix for newgui, which would from time to time (randomly) recieve a double keydown event.

That keydown event was actually a keyup event (!), but because of sdl.cpp OSystem::poll_event not filling the event struct for the keyup event (!?) this was misbehaving.

Patch also reintroduces EVENT_KEYUP, and enables handling of said event in newgui.cpp.


Ticket imported from: #582286. Ticket imported from: patches/85.

Attachments (1)

event_keyup.diff (3.0 KB ) - added by (none) 21 years ago.

Download all attachments as: .zip

Change History (4)

by (none), 21 years ago

Attachment: event_keyup.diff added

comment:1 by SF/painelf, 21 years ago

Whoops, disregard changes to gameDetector.cpp :)

comment:2 by fingolfin, 21 years ago

Owner: set to fingolfin
Status: newclosed

comment:3 by digitall, 5 years ago

Component: GUI
Note: See TracTickets for help on using tickets.