danielepanozzo / cg-old

44 stars 16 forks source link

GLFW macro for '+' Keyboard Input #95

Open varsh27 opened 5 years ago

varsh27 commented 5 years ago

GLFW_KEY_MINUS is accepted as a macro for the '-' key and it works fine but GLFW_KEY_PLUS does not get accepted as a macro for '+'.

I get the following error: error: use of undeclared identifier 'GLFW_KEY_PLUS' case GLFW_KEY_PLUS:

Am I overlooking something here? I can't seem to find the macro for the '+' key anywhere.

danielepanozzo commented 5 years ago

'+' is not a key in the US layout (it is only available trough a modifier), that's why it is not listed in the GLFW macros. You can use GLFW_KEY_EQUAL instead.