From 53df2118814d5cd62ed38f8c15f2c4598b8ae5e0 Mon Sep 17 00:00:00 2001 From: "Stephen C. Wills" Date: Sun, 14 Nov 2021 12:37:49 -0500 Subject: [PATCH] Add support fro 3DS C-stick --- CMake/ctr/n3ds_defs.cmake | 4 +++- docs/manual/platforms/3ds.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMake/ctr/n3ds_defs.cmake b/CMake/ctr/n3ds_defs.cmake index 05fea5911..1b0234131 100644 --- a/CMake/ctr/n3ds_defs.cmake +++ b/CMake/ctr/n3ds_defs.cmake @@ -22,9 +22,11 @@ set(SDL1_VIDEO_MODE_BPP 8) set(DEFAULT_WIDTH 800) set(DEFAULT_HEIGHT 480) -#SDL Joystick axis mapping (circle-pad) +#SDL Joystick axis mapping (circle-pad/C-stick) set(JOY_AXIS_LEFTX 0) set(JOY_AXIS_LEFTY 1) +set(JOY_AXIS_RIGHTX 3) +set(JOY_AXIS_RIGHTY 4) #SDL Joystick hat mapping (D-pad) set(JOY_HAT_DPAD_UP_HAT 0) set(JOY_HAT_DPAD_RIGHT_HAT 0) diff --git a/docs/manual/platforms/3ds.md b/docs/manual/platforms/3ds.md index 81200ecb6..f6b9d40b4 100644 --- a/docs/manual/platforms/3ds.md +++ b/docs/manual/platforms/3ds.md @@ -27,6 +27,7 @@ Installation instructions can be found on the [Installing](/docs/installing.md) * Start + X: toggle zoom * Select + D-Pad: move automap or simulate mouse * Select + A/B/X/Y: Spell hotkeys +* C-stick: move automap or simulate mouse * Select + ZL: quest log (alt: Start + Y) * Select + ZR: spell book (alt: Start + B)