Team Fortress 2 Source Code as on 22/4/2020
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.

28 lines
603 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef DMETIMESELECTIONTIMES_H
  7. #define DMETIMESELECTIONTIMES_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. enum DmeTimeSelectionTimes_t
  12. {
  13. TS_LEFT_FALLOFF = 0,
  14. TS_LEFT_HOLD,
  15. TS_RIGHT_HOLD,
  16. TS_RIGHT_FALLOFF,
  17. TS_TIME_COUNT,
  18. };
  19. // NOTE: _side == 0 means left, == 1 means right
  20. #define TS_FALLOFF( _side ) ( ( TS_TIME_COUNT - (_side) ) & 0x3 )
  21. #define TS_HOLD( _side ) ( TS_LEFT_HOLD + (_side) )
  22. #endif // DMETIMESELECTIONTIMES_H