Create constants for special characters on non-Linux systems. #138

RavensKrag opened this Issue Jul 24, 2012 · 3 comments


None yet
3 participants

I've implemented a patch which will create these keys for linux, but they still need to be implemented on other platforms. The names are as follows.

kbBacktick, kbMinus, kbEqual, kbBracketLeft, kbBracketRight, kbBackslash, kbSemicolon, kbApostrophe, kbComma, kbPeriod, kbSlash

Like all other Gosu keyboard constants, they map to the positions of those keys on the QWERTY keyboard.


erisdev commented Jul 25, 2012

Hm. It would be nice to have these, especially since brackets and such are pretty common shortcut keys for scrolling through things like weapons (or tiles, in a map editor). @jlnr is there any reason they were left out in the first place?


jlnr commented Jul 25, 2012

Before KbA-KbZ were introduced, Gosu only had constants for keys that are the same all around the world (shift, space, ctrl...)

KbA-KbZ have established that the QWERTY keyboard is what counts as far as Kb* constants are concerned, so there is no reason not to merge this.


jlnr commented Apr 1, 2013

I've added constants with these names on all operating systems, but I have only tested Linux and Windows in VMware.

jlnr closed this Apr 1, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment