diff options
author | Adrian Graber <adrian@adriangraber.com> | 2021-07-12 01:26:11 +0200 |
---|---|---|
committer | Adrian Graber <adrian@adriangraber.com> | 2021-07-13 00:50:49 +0200 |
commit | 3bde84f6c8480217b2fcd7ec29c28f62672a3279 (patch) | |
tree | 4195c5f6b8634f57232e71c8e8fb0bc592e2f175 /src | |
parent | Add Switch controller asset and configuration (diff) | |
download | re3-3bde84f6c8480217b2fcd7ec29c28f62672a3279.tar re3-3bde84f6c8480217b2fcd7ec29c28f62672a3279.tar.gz re3-3bde84f6c8480217b2fcd7ec29c28f62672a3279.tar.bz2 re3-3bde84f6c8480217b2fcd7ec29c28f62672a3279.tar.lz re3-3bde84f6c8480217b2fcd7ec29c28f62672a3279.tar.xz re3-3bde84f6c8480217b2fcd7ec29c28f62672a3279.tar.zst re3-3bde84f6c8480217b2fcd7ec29c28f62672a3279.zip |
Diffstat (limited to '')
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/skel/crossplatform.h | 25 |
2 files changed, 26 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1cf10d0f..425f2315 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -171,7 +171,7 @@ if(NINTENDO_SWITCH) nx_create_nro(${EXECUTABLE} NACP ${EXECUTABLE}.nacp - ICON "${PROJECT_SOURCE_DIR}/logo_switch.jpg" + ICON "${PROJECT_SOURCE_DIR}/res/images/logo_256.jpg" ) if(${PROJECT}_INSTALL) diff --git a/src/skel/crossplatform.h b/src/skel/crossplatform.h index aa90ce5a..67bb4282 100644 --- a/src/skel/crossplatform.h +++ b/src/skel/crossplatform.h @@ -157,3 +157,28 @@ bool FindNextFile(HANDLE, WIN32_FIND_DATA*); void FileTimeToSystemTime(time_t*, SYSTEMTIME*); void GetDateFormat(int, int, SYSTEMTIME*, int, char*, int); #endif + +#ifdef __SWITCH__ + +// tweak glfw values for switch to match expected pc bindings +#ifdef GLFW_GAMEPAD_BUTTON_A + #undef GLFW_GAMEPAD_BUTTON_A +#endif +#define GLFW_GAMEPAD_BUTTON_A 1 + +#ifdef GLFW_GAMEPAD_BUTTON_B + #undef GLFW_GAMEPAD_BUTTON_B +#endif +#define GLFW_GAMEPAD_BUTTON_B 0 + +#ifdef GLFW_GAMEPAD_BUTTON_X + #undef GLFW_GAMEPAD_BUTTON_X +#endif +#define GLFW_GAMEPAD_BUTTON_X 3 + +#ifdef GLFW_GAMEPAD_BUTTON_Y + #undef GLFW_GAMEPAD_BUTTON_Y +#endif +#define GLFW_GAMEPAD_BUTTON_Y 2 + +#endif |