diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-14 17:09:07 +0200 |
---|---|---|
committer | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-14 17:09:07 +0200 |
commit | 4a5f7464c14f214eadfeb177705902777f52d326 (patch) | |
tree | eef8b7dc86e83f8fdb0ba27a5abedd62892c51e3 /src/skel/crossplatform.h | |
parent | ginput script (diff) | |
parent | Fix artifact path (diff) | |
download | re3-4a5f7464c14f214eadfeb177705902777f52d326.tar re3-4a5f7464c14f214eadfeb177705902777f52d326.tar.gz re3-4a5f7464c14f214eadfeb177705902777f52d326.tar.bz2 re3-4a5f7464c14f214eadfeb177705902777f52d326.tar.lz re3-4a5f7464c14f214eadfeb177705902777f52d326.tar.xz re3-4a5f7464c14f214eadfeb177705902777f52d326.tar.zst re3-4a5f7464c14f214eadfeb177705902777f52d326.zip |
Diffstat (limited to 'src/skel/crossplatform.h')
-rw-r--r-- | src/skel/crossplatform.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/skel/crossplatform.h b/src/skel/crossplatform.h index f37e64a1..4ab7d156 100644 --- a/src/skel/crossplatform.h +++ b/src/skel/crossplatform.h @@ -161,3 +161,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 |