1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Move some more sources to shared target

This commit is contained in:
sfan5 2024-09-09 21:34:56 +02:00
parent 4e9aa7dc77
commit b61c83a19d
12 changed files with 33 additions and 45 deletions

View file

@ -91,11 +91,9 @@ struct PlayerControl
// joystick input.
void setMovementFromKeys();
#if CHECK_CLIENT_BUILD()
// For client use
u32 getKeysPressed() const;
inline bool isMoving() const { return movement_speed > 0.001f; }
#endif
// For server use
void unpackKeysPressed(u32 keypress_bits);