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();
|
|
|
|
|
2016-09-16 05:04:28 -04:00
|
|
|
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
|
2016-11-20 08:09:07 -05:00
|
|
|
const char* getName() { return "Lean"; };
|
2016-08-16 14:36:52 -04:00
|
|
|
#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
|
|
|
};
|
|
|
|
}
|