View Issue Details

IDProjectCategoryView StatusLast Update
0005752Spring engineLuapublic2019-01-16 23:23
Reportersprung Assigned To 
PrioritylowSeveritytrivialReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version103.0 +git 
Summary0005752: Volume +/- keys mistaken for B and C
DescriptionSome keyboards (esp laptops) have volume +/- keys. The engine seems to pass them as B and C to Lua.
Steps To Reproducepress either B or Volume+, both are passed to Lua as

function widgetHandler:KeyPress(key, mods, isRepeat, label, unicode)

key = 97
label = "b"
unicode = 0
Additional InformationZK ticket: https://github.com/ZeroK-RTS/Zero-K/issues/2497

Looks like this also exists in other engines and under multiple keyboards. For example see http://dev.dota2.com/showthread.php?t=87328
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Kloot

2019-01-16 23:23

developer   ~0019667

my own keyboard has functional volume keys, pressing them in-game does nothing.

since I don't plan to replace key event handling and the engine has no way of telling B/C and fake B/C presses apart, this issue (if it still exists) will have to be solved on SDL's end or through picking a different OS keyboard layout.

Issue History

Date Modified Username Field Change
2017-09-07 12:41 sprung New Issue
2019-01-16 23:23 Kloot Status new => closed
2019-01-16 23:23 Kloot Resolution open => unable to reproduce
2019-01-16 23:23 Kloot Note Added: 0019667