mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-10 01:28:44 +02:00
refactor(pad): libScePad files structure refactor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
add_library(libScePad SHARED EXCLUDE_FROM_ALL
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/Export.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/PadState.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/PadState.cpp
|
||||
)
|
||||
target_include_directories(libScePad PRIVATE ${LIBS_INCLUDE_DIR})
|
||||
set_target_properties(libScePad PROPERTIES CXX_EXTENSIONS OFF)
|
||||
|
||||
@@ -4,10 +4,11 @@
|
||||
#include <stdexcept>
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
|
||||
#include "SceTypes.hpp"
|
||||
#include "prx/libc/include/General.hpp"
|
||||
#include "prx/libScePad/Pad.hpp"
|
||||
#include "prx/libScePad/PadState.hpp"
|
||||
#include "prx//libc/include/General.hpp"
|
||||
#include "prx/libScePad/include/Pad.hpp"
|
||||
#include "prx/libScePad/include/PadState.hpp"
|
||||
|
||||
extern "C" {
|
||||
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
#include "prx/libScePad/PadState.hpp"
|
||||
#include "prx/libScePad/include/PadState.hpp"
|
||||
#include "prx/libkernel/Time/include/Time.hpp"
|
||||
#include <mutex>
|
||||
#include <stdexcept>
|
||||
|
||||
namespace {
|
||||
std::mutex stateMutex;
|
||||
PadInputState state;
|
||||
std::uint64_t timestamp = 0;
|
||||
std::exception_ptr failure;
|
||||
bool initialized = false;
|
||||
std::mutex stateMutex;
|
||||
PadInputState state;
|
||||
std::uint64_t timestamp = 0;
|
||||
std::exception_ptr failure;
|
||||
bool initialized = false;
|
||||
}
|
||||
|
||||
void Pad::Initialize() {
|
||||
@@ -2,7 +2,7 @@
|
||||
#define CORE_LIBS_PRX_LIBSCEVIDEOOUT_PADINPUT_HPP
|
||||
|
||||
#include "SDL_events.h"
|
||||
#include "prx/libScePad/InputMapping.hpp"
|
||||
#include "prx/libScePad/include/InputMapping.hpp"
|
||||
#include <array>
|
||||
#include <chrono>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "prx/libSceVideoOut/include/PadInput.hpp"
|
||||
#include "prx/libScePad/PadState.hpp"
|
||||
#include "prx/libScePad/include/PadState.hpp"
|
||||
#include "SDL.h"
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include "SDL.h"
|
||||
#include "SDL_vulkan.h"
|
||||
#include "prx/libSceVideoOut/include/PadInput.hpp"
|
||||
#include "prx/libScePad/PadState.hpp"
|
||||
#include "prx/libScePad/include/PadState.hpp"
|
||||
#include "prx/libkernel/Equeue/Equeue.hpp"
|
||||
#include "prx/libkernel/Time/include/Time.hpp"
|
||||
#include "prx/libSceVideoOut/include/VideoOutDriver.hpp"
|
||||
|
||||
Reference in New Issue
Block a user