Opened 22 years ago

Closed 22 years ago

Last modified 6 years ago

#7980 closed patch

Fix newgui double keydown event

Reported by: (none) Owned by: fingolfin
Priority: normal Component: GUI
Version: 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) 22 years ago.

Download all attachments as: .zip

Change History (4)

by (none), 22 years ago

Attachment: event_keyup.diff added

comment:1 by SF/painelf, 22 years ago

Whoops, disregard changes to gameDetector.cpp :)

comment:2 by fingolfin, 22 years ago

Owner: set to fingolfin
Status: newclosed

comment:3 by digitall, 6 years ago

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