mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-04-23 23:43:55 +00:00
wired up keyboard and mouse input for menu navigation, inventory cursor, crafting, and general UI interaction. added WASD movement, mouse look, left ctrl sprint, left shift sneak, and all the keybinds for gameplay. also fixed the sound engine crashing when it cant find a sound asset, and set up the x64 build with proper post-build steps for dlls and redist
23 lines
272 B
C++
23 lines
272 B
C++
#pragma once
|
|
class Player;
|
|
|
|
class Input
|
|
{
|
|
public:
|
|
float xa;
|
|
float ya;
|
|
|
|
bool wasJumping;
|
|
bool jumping;
|
|
bool sneaking;
|
|
bool sprinting;
|
|
|
|
Input(); // 4J - added
|
|
|
|
virtual void tick(LocalPlayer *player);
|
|
|
|
private:
|
|
|
|
bool lReset;
|
|
bool rReset;
|
|
}; |