OWL - Open Windowing Library
The Key enums are a part of the keyboard class - they are used by the isKeyPressed() function to check whether or not is the key behind a certain enum pressed, and are used in the KeyData structure, as the keyEnum value. The structure is returned by the getKeyData() function.
These are all the keys in it:
ShiftLeftShiftRightCtrlLeftCtrlRightEnterCapsLockTabApostropheEscapeAltLeftAltRightBackspaceSpaceNum1Num2Num3Num4Num5Num6Num7Num8Num9Num0NumPad1NumPad2NumPad3NumPad4NumPad5NumPad6NumPad7NumPad8NumPad9QWERTYUIOPASDFGHJKLZXCVBNMCommaPeriodSlashSlashBackSemicolonBracketOpenBracketCloseMinusEqualsWindowsSuperMenuF1F2F3F4F5F6F7F8F9F10F11F12NumLockNumPadMultiplyNumPadDivideNumPadMinusNumPadPlusNumPadDeleteArrowUpArrowDownArrowLeftArrowRightPrintScreenScrollLockPauseInsertHomePageUpDeleteEndPageDownBackQuoteExample of usage:
std::cout << "Apostrophe key's state: " << window.keyboard.isKeyPressed(OWL::keyboard::Apostrophe) << "\n";
std::cout << "Is B being typeed in: " << ((window.keyboard.getKeyData().keyEnum == OWL::keyboard::B) ? "yes" : "no") << "\n"; // We should see an pattern of interpolating "yes"'s and "no"'s if the button is pressed.