cocoa_key_to_anttweakbar_key.h 549 B

1234567891011121314151617181920212223
  1. #ifndef IGL_COCOA_KEY_TO_ANTTWEAKBAR_KEY_H
  2. #define IGL_COCOA_KEY_TO_ANTTWEAKBAR_KEY_H
  3. #ifndef IGL_NO_ANTTWEAKBAR
  4. #include "igl_inline.h"
  5. namespace igl
  6. {
  7. // Convert an unsigned char (like that from Cocoa apps) to AntTweakBar key
  8. // code.
  9. // See also: TranslateKey() in TwMgr.cpp in AntTweakBar source
  10. // Inputs:
  11. // key unsigned char key from keyboard
  12. // Returns int of new key code
  13. IGL_INLINE int cocoa_key_to_anttweakbar_key(int key);
  14. }
  15. #ifdef IGL_HEADER_ONLY
  16. # include "cocoa_key_to_anttweakbar_key.cpp"
  17. #endif
  18. #endif
  19. #endif