libcm is a C development framework with an emphasis on audio signal processing applications.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmKeyboard.h 432B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef cmKeyboard_h
  2. #define cmKeyboard_h
  3. enum
  4. {
  5. kInvalidKId,
  6. kAsciiKId,
  7. kLeftArrowKId,
  8. kRightArrowKId,
  9. kUpArrowKId,
  10. kDownArrowKId,
  11. kHomeKId,
  12. kEndKId,
  13. kPgUpKId,
  14. kPgDownKId,
  15. kInsertKId,
  16. kDeleteKId,
  17. };
  18. typedef struct
  19. {
  20. unsigned code;
  21. char ch;
  22. bool ctlFl;
  23. bool altFl;
  24. } cmKbRecd;
  25. // Set 'p' to NULL if the value of the key is not required.
  26. void cmKeyPress( cmKbRecd* p );
  27. #endif