LEFT ALT, RIGHT ALT, etc

Monkey Targets Forums/Desktop/LEFT ALT, RIGHT ALT, etc

mr_twister(Posted 2015) [#1]
I noticed that the constants for the ALT keys are added to the keycodes.monkey with a big //TO-DO comment on top, which means that they were considered to be added at one point.

Un-commenting those constants for GLFW and adding their mapping to TransKey() allowed me to read them without problem, however this got me wondering... are they currently disabled for a reason? or it's just something that someone forgot to uncomment/enable later?


Nobuyuki(Posted 2015) [#2]
it is my belief that these were set to change between glfw2->glfw3, or possibly the codes aren't captured the same way on intl keyboards. Is the solution specific to either glfw2 or 3?


mr_twister(Posted 2015) [#3]
It's pretty much the same for GLFW2 and 3:
In GLFW2 the constants are GLFW_LALT and GLFW_RALT for instance, and in GLFW3 they are GLFW_LEFT_ALT and GLFW_RIGHT_ALT.