Opened 14 years ago

Closed 14 years ago

Last modified 6 years ago

#9172 closed patch (invalid)

SDL backend: Map keypad period and divide

Reported by: Templier Owned by:
Priority: normal Component: Ports
Version: Keywords:
Cc: Game:


Keypad divide and period are not mapped to any ascii values and do not output any character when used in editable widgets or in the console.

This patch adds a new check in mapKey() to map those two keys to their proper ascii values.

Ticket imported from: #2993618. Ticket imported from: patches/1277.

Attachments (1)

sdl_map_keypad_divide_period.patch (542 bytes ) - added by Templier 14 years ago.
Patch: add mapping for keypad period & divide

Download all attachments as: .zip

Change History (5)

by Templier, 14 years ago

Patch: add mapping for keypad period & divide

comment:1 by lordhoto, 14 years ago

For me divide and period work really fine without your patch (both when numlock is set or not, they work as expected, i.e. divide is always "\" and period is either delete or ","). Maybe that is a platform specific SDL bug for you?

comment:2 by Templier, 14 years ago

You're right, this was an SDL problem, updating to the last version fixed the problem. I guess I ended up keeping an old version when testing the previous event patch with different versions of SDL. Sorry about that invalid entry.

comment:3 by Templier, 14 years ago

Resolution: invalid
Status: newclosed

comment:4 by digitall, 6 years ago

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