Counter Strike : Global Offensive Source Code
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.

31 lines
567 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #if !defined( KBUTTON_H )
  9. #define KBUTTON_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "shareddefs.h"
  14. struct kbutton_t
  15. {
  16. struct Split_t
  17. {
  18. // key nums holding it down
  19. int down[ 2 ];
  20. // low bit is down state
  21. int state;
  22. };
  23. Split_t &GetPerUser( int nSlot = -1 );
  24. Split_t m_PerUser[ MAX_SPLITSCREEN_PLAYERS ];
  25. };
  26. #endif // KBUTTON_H