iw4x-client/src/Components/Modules/Lean.hpp

28 lines
625 B
C++
Raw Normal View History

2017-01-20 08:36:52 -05:00
#pragma once
2017-01-19 16:23:59 -05:00
namespace Components
{
class Lean : public Component
{
public:
Lean();
2022-08-10 18:21:58 -04:00
static Dvar::Var BGLean;
2017-01-19 16:23:59 -05:00
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();
2022-08-10 18:21:58 -04:00
static void CL_CmdButtons_Stub();
static void SetLeanFlags(Game::usercmd_s* cmd);
static void PM_UpdateLean_Stub(Game::playerState_s* ps, float msec, Game::usercmd_s* cmd, void(*capsuleTrace)(Game::trace_t*, const float*, const float*, const Game::Bounds*, int, int));
2017-01-19 16:23:59 -05:00
};
}