iw4x-client/src/Components/Modules/Lean.hpp
/dev/root 124e86387b [General] Fixed line endings
- converted all line endings in cpp/hpp files to dos
2016-11-25 13:00:48 +01:00

29 lines
591 B
C++

#define BUTTON_FLAG_LEANLEFT 0x40
#define BUTTON_FLAG_LEANRIGHT 0x80
namespace Components
{
class Lean : public Component
{
public:
Lean();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() { return "Lean"; };
#endif
private:
static Game::kbutton_t in_leanleft;
static Game::kbutton_t in_leanright;
static void IN_LeanLeft_Up();
static void IN_LeanLeft_Down();
static void IN_LeanRight_Up();
static void IN_LeanRight_Down();
static void CL_CmdButtonsStub();
static void SetLeanFlags(Game::usercmd_s* cmds);
};
}