diff options
Diffstat (limited to 'src/game/client/io')
| -rw-r--r-- | src/game/client/io/gamepad.cc | 5 | ||||
| -rw-r--r-- | src/game/client/io/gamepad.hh | 9 | ||||
| -rw-r--r-- | src/game/client/io/glfw.hh | 9 | ||||
| -rw-r--r-- | src/game/client/io/sound.cc | 5 | ||||
| -rw-r--r-- | src/game/client/io/sound.hh | 9 |
5 files changed, 37 insertions, 0 deletions
diff --git a/src/game/client/io/gamepad.cc b/src/game/client/io/gamepad.cc index 2c99107..768b18b 100644 --- a/src/game/client/io/gamepad.cc +++ b/src/game/client/io/gamepad.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: gamepad.cc +// Description: Gamepad support + #include "client/pch.hh" #include "client/io/gamepad.hh" diff --git a/src/game/client/io/gamepad.hh b/src/game/client/io/gamepad.hh index 5f76277..b506cc2 100644 --- a/src/game/client/io/gamepad.hh +++ b/src/game/client/io/gamepad.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: gamepad.hh +// Description: Gamepad support + +#ifndef CLIENT_IO_GAMEPAD_HH +#define CLIENT_IO_GAMEPAD_HH #pragma once constexpr static int INVALID_GAMEPAD_AXIS = INT_MAX; @@ -42,3 +49,5 @@ struct GamepadButtonEvent final { int action; int button; }; + +#endif diff --git a/src/game/client/io/glfw.hh b/src/game/client/io/glfw.hh index ad445f9..9da978b 100644 --- a/src/game/client/io/glfw.hh +++ b/src/game/client/io/glfw.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: glfw.hh +// Description: GLFW events passed through EnTT's signal system + +#ifndef CLIENT_IO_GLFW_HH +#define CLIENT_IO_GLFW_HH #pragma once struct GlfwCursorPosEvent final { @@ -31,3 +38,5 @@ struct GlfwScrollEvent final { float dx; float dy; }; + +#endif diff --git a/src/game/client/io/sound.cc b/src/game/client/io/sound.cc index e67c456..886da2c 100644 --- a/src/game/client/io/sound.cc +++ b/src/game/client/io/sound.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: sound.cc +// Description: Sound handling + #include "client/pch.hh" #include "client/io/sound.hh" diff --git a/src/game/client/io/sound.hh b/src/game/client/io/sound.hh index d96d0c4..f61410a 100644 --- a/src/game/client/io/sound.hh +++ b/src/game/client/io/sound.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: sound.hh +// Description: Sound handling + +#ifndef CLIENT_IO_SOUND_HH +#define CLIENT_IO_SOUND_HH #pragma once #include "core/resource/resource.hh" @@ -41,3 +48,5 @@ void play_entity(entt::entity entity, resource_ptr<SoundEffect> sound, bool loop void play_player(resource_ptr<SoundEffect> sound, bool looping, float pitch); void play_ui(resource_ptr<SoundEffect> sound, bool looping, float pitch); } // namespace sound + +#endif |
