get_modifiers.h 458 B

12345678910111213141516171819202122
  1. #ifndef GET_MODIFIERS_H
  2. #define GET_MODIFIERS_H
  3. #include "igl_inline.h"
  4. namespace igl
  5. {
  6. enum Modifier
  7. {
  8. MODIFIER_OPTION = 1,
  9. MODIFIER_SHIFT = 3,
  10. MODIFIER_CONTROL = 5,
  11. MODIFIER_COMMAND = 9,
  12. NUM_MODIFIERS = 4,
  13. };
  14. // Retrieve current modifier constellation.
  15. //
  16. // Returns int that's an "or" of the active modifiers above.
  17. IGL_INLINE int get_modifiers();
  18. }
  19. #ifndef IGL_STATIC_LIBRARY
  20. #include "get_modifiers.cpp"
  21. #endif
  22. #endif