cocoa_key_to_anttweakbar_key.h 515 B

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