Opened 18 years ago

Closed 18 years ago

Last modified 20 months ago

#7980 closed patch

Fix newgui double keydown event

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

Description

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.

/painelf

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

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

by (none), 18 years ago

Attachment: event_keyup.diff added

comment:1 by SF/painelf, 18 years ago

Whoops, disregard changes to gameDetector.cpp :)

comment:2 by fingolfin, 18 years ago

Owner: set to fingolfin
Status: newclosed

comment:3 by digitall, 20 months ago

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