derrekr / srb2_3ds

Port of Sonic Roboblast 2 to the Nintendo New3DS
49 stars 6 forks source link

Add support for C-stick and touchscreen mouse #18

Closed wallefan closed 11 months ago

wallefan commented 11 months ago

The code previously supported using the New 3DS C-stick as a 4-way D-pad. I added support for using it as a second analog stick, and updated the axis names in the settings menu to refer to the 3DS instead of generic HID joysticks. I also added support for using the touch screen as a trackpad which gets sent to the game as mouse input. Neither of these new inputs are scaled in any way before being sent to the engine, because I wasn't sure what to scale them by.

I also updated the makefile so it'll build with the latest version of the toolchain. In my fork, I also commented out the definition of __dmb in source/nds_utils.h since an identical definition now exists in libctru. I did not commit this change since you had already modified that file. You can ignore either or both of those ancillary changes if they would mess something else up.