- Move HIDInput struct from inputstate.h to gameinput.h.

This commit is contained in:
Mitchell Richters 2023-03-31 00:28:41 +11:00
parent 10cd63f383
commit 13cb52a0db
3 changed files with 6 additions and 8 deletions

View file

@ -83,6 +83,11 @@ private:
class FSerializer;
FSerializer& Serialize(FSerializer& arc, const char* keyname, PlayerAngles& w, PlayerAngles* def);
struct HIDInput
{
float joyaxes[NUM_JOYAXIS];
FVector2 mouse;
};
void clearLocalInputBuffer();
void processVehicleInput(HIDInput* const hidInput, InputPacket* const currInput, const double scaleAdjust, const float baseVel, const float velScale, const bool canMove, const bool canTurn, const bool attenuate);

View file

@ -18,6 +18,7 @@ struct tspritetype;
class DCoreActor;
struct MapRecord;
struct PlayerAngles;
struct HIDInput;
void processMovement(HIDInput* const hidInput, InputPacket* const currInput, const double scaleAdjust, const int drink_amt = 0, const bool allowstrafe = true, const double turnscale = 1.);

View file

@ -13,14 +13,6 @@
#include "packet.h"
#include "vectors.h"
struct HIDInput
{
float joyaxes[NUM_JOYAXIS];
FVector2 mouse;
};
class InputState
{
uint8_t KeyStatus[NUM_KEYS];