wgois / OIS

Official OIS repository. Object oriented Input System
https://wgois.github.io/OIS/
zlib License
254 stars 86 forks source link

fix getAsString for explicit converted keycodes #54

Closed rpaciorek closed 4 years ago

rpaciorek commented 4 years ago

Summary of changes

Currently getAsString() for explicit converted keycodes (eg. arrows keys) show incorrect key name (eg. "XF86AudioPlay" instead of "Down"). Add full reverse mapping for fix this.

Affected backeds (X11)

Ybalrid commented 4 years ago

Can you replace the ADD_KEY_CONVERSION macro with an actual function?

rpaciorek commented 4 years ago

Replaced. I also merged convert() function using only in KeySymToOISKeyCode / OISKeyCodeToKeySym into them and fix/implement getAsKeyCode().