1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#pragma once class Player; class Input { public: float xa; float ya; float sprintForward; bool wasJumping; bool jumping; bool sneaking; bool usingKeyboardMovement; Input(); // 4J - added virtual void tick(LocalPlayer *player); private: bool lReset; bool rReset; bool m_gamepadSneaking; };