2016-08-17 14:27:33 -04:00
|
|
|
#define BUTTON_FLAG_LEANLEFT 0x40
|
|
|
|
#define BUTTON_FLAG_LEANRIGHT 0x80
|
|
|
|
|
2016-08-16 14:36:52 -04:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Lean : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Lean();
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
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();
|
2016-08-17 14:27:33 -04:00
|
|
|
|
|
|
|
static void CL_CmdButtonsStub();
|
|
|
|
static void SetLeanFlags(Game::usercmd_s* cmds);
|
2016-08-16 14:36:52 -04:00
|
|
|
};
|
|
|
|
}
|