get_modifiers.h 503 B

12345678910111213141516171819202122232425
  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. //
  18. // FORCED INLINE
  19. inline int get_modifiers();
  20. }
  21. // FORCED INLINE
  22. //#ifndef IGL_STATIC_LIBRARY
  23. //#include "get_modifiers.cpp"
  24. //#endif
  25. #endif