Skip to content

Commit

Permalink
Move input.cpp to a new directory
Browse files Browse the repository at this point in the history
- Other input-related state will go in there soon
  • Loading branch information
JesseTG committed Oct 29, 2024
1 parent 852ac11 commit 54ada28
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/libretro/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ add_library(melondsds_libretro ${LIBRARY_TYPE}
glsym_private.h
info.cpp
info.hpp
input.cpp
input.hpp
input/input.cpp
input/input.hpp
libretro.cpp
libretro.hpp
math.hpp
Expand Down
2 changes: 1 addition & 1 deletion src/libretro/config/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
#include "environment.hpp"
#include "exceptions.hpp"
#include "format.hpp"
#include "input.hpp"
#include "input/input.hpp"
#include "libretro.hpp"
#include "microphone.hpp"
#include "net/pcap.hpp"
Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions src/libretro/input.hpp → src/libretro/input/input.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
with melonDS DS. If not, see http://www.gnu.org/licenses/.
*/

#ifndef MELONDS_DS_INPUT_HPP
#define MELONDS_DS_INPUT_HPP
#pragma once

#include <libretro.h>
#include <glm/vec2.hpp>
Expand Down Expand Up @@ -118,4 +117,3 @@ namespace MelonDsDs {

void HandleInput(melonDS::NDS& nds, InputState& inputState, ScreenLayoutData& screenLayout) noexcept;
}
#endif //MELONDS_DS_INPUT_HPP
2 changes: 1 addition & 1 deletion src/libretro/microphone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "config/config.hpp"
#include "environment.hpp"
#include "input.hpp"
#include "input/input.hpp"
#include "tracy.hpp"

using std::optional;
Expand Down
2 changes: 1 addition & 1 deletion src/libretro/render/software.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "config/config.hpp"
#include "config/types.hpp"
#include "input.hpp"
#include "input/input.hpp"
#include "message/error.hpp"
#include "screenlayout.hpp"
#include "tracy.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/libretro/screenlayout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "config/constants.hpp"
#include "environment.hpp"
#include "input.hpp"
#include "input/input.hpp"
#include "buffer.hpp"
#include "retro/scaler.hpp"

Expand Down

0 comments on commit 54ada28

Please sign in to comment.