Overview
Comment: | ObjFWHID: Add support for Nintendo Switch |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
e01b5123f1c324c4d94a67358afdee67 |
User & Date: | js on 2024-06-09 23:24:57 |
Other Links: | manifest | tags |
References
2024-06-09
| ||
23:41 | • Fixed ticket [0227cda045]: Support `OHGameController` on Nintendo Switch plus 4 other changes artifact: fe4867c5dc user: js | |
Context
2024-06-09
| ||
23:39 | Various cleanups check-in: 01f1d066bc user: js tags: trunk | |
23:24 | ObjFWHID: Add support for Nintendo Switch check-in: e01b5123f1 user: js tags: trunk | |
17:25 | Fix build on Windows check-in: 80f3a121e5 user: js tags: trunk | |
Changes
Modified .fossil-settings/ignore-glob from [3a81b89ba8] to [5ea8078660].
︙ | |||
45 46 47 48 49 50 51 52 53 54 55 56 57 58 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | + | tests/big_dictionary_msgpack_gz.m tests/boot.dol tests/gamecontroller/boot.dol tests/gamecontroller/tests tests/gamecontroller/tests.3dsx tests/gamecontroller/tests.arm9 tests/gamecontroller/tests.nds tests/gamecontroller/tests.nro tests/iOS.xcodeproj/*.pbxuser tests/iOS.xcodeproj/project.xcworkspace tests/iOS.xcodeproj/xcuserdata tests/objc_sync/objc_sync tests/plugin/Info.plist tests/subprocess/subprocess tests/terminal/terminal_tests |
︙ |
Modified configure.ac from [9cf24819d0] to [da5b98bd30].
︙ | |||
283 284 285 286 287 288 289 290 291 292 293 294 295 296 | 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 | + | enable_shared="no" enable_threads="yes" enable_sockets="no" # TODO check_pedantic="no" AC_DEFINE(OF_NINTENDO_SWITCH, 1, [Whether we are compiling for Nintendo Switch]) AC_SUBST(USE_SRCS_NINTENDO_SWITCH, '${SRCS_NINTENDO_SWITCH}') ]) CPP="$OBJCPP" CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS -DOF_COMPILING_OBJFW" flags="-fexceptions -fobjc-exceptions -funwind-tables" flags="$flags -fconstant-string-class=OFConstantString" OBJCFLAGS="$OBJCFLAGS -Wall $flags" |
︙ |
Modified extra.mk.in from [9f19d25a21] to [fce4ff237a].
︙ | |||
98 99 100 101 102 103 104 105 106 107 108 109 110 111 | 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | + | USE_INCLUDES_ATOMIC = @USE_INCLUDES_ATOMIC@ USE_SRCS_APPLETALK = @USE_SRCS_APPLETALK@ USE_SRCS_EVDEV = @USE_SRCS_EVDEV@ USE_SRCS_FILES = @USE_SRCS_FILES@ USE_SRCS_IPX = @USE_SRCS_IPX@ USE_SRCS_NINTENDO_3DS = @USE_SRCS_NINTENDO_3DS@ USE_SRCS_NINTENDO_DS = @USE_SRCS_NINTENDO_DS@ USE_SRCS_NINTENDO_SWITCH = @USE_SRCS_NINTENDO_SWITCH@ USE_SRCS_PLUGINS = @USE_SRCS_PLUGINS@ USE_SRCS_SCTP = @USE_SRCS_SCTP@ USE_SRCS_SOCKETS = @USE_SRCS_SOCKETS@ USE_SRCS_SUBPROCESSES = @USE_SRCS_SUBPROCESSES@ USE_SRCS_TAGGED_POINTERS = @USE_SRCS_TAGGED_POINTERS@ USE_SRCS_THREADS = @USE_SRCS_THREADS@ USE_SRCS_UNIX_SOCKETS = @USE_SRCS_UNIX_SOCKETS@ |
︙ |
Modified src/hid/Makefile from [b9d799174b] to [1c32c733a0].
︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | + + + | OHGameControllerAxis.m \ OHGameControllerButton.m \ OHGameControllerDirectionalPad.m \ OHGameControllerElement.m \ ${USE_SRCS_EVDEV} \ ${USE_SRCS_NINTENDO_3DS} \ ${USE_SRCS_NINTENDO_DS} \ ${USE_SRCS_NINTENDO_SWITCH} \ ${USE_SRCS_WII} \ ${USE_SRCS_XINPUT} SRCS_EVDEV = OHEvdevDualSense.m \ OHEvdevDualShock4.m \ OHEvdevExtendedGamepad.m \ OHEvdevGameController.m \ OHEvdevPlayStationExtendedGamepad.m \ OHEvdevStadiaExtendedGamepad.m SRCS_NINTENDO_3DS = OHNintendo3DSExtendedGamepad.m \ OHNintendo3DSGameController.m SRCS_NINTENDO_DS = OHNintendoDSGamepad.m \ OHNintendoDSGameController.m SRCS_NINTENDO_SWITCH = OHNintendoSwitchExtendedGamepad.m \ OHNintendoSwitchGameController.m SRCS_WII = OHWiiClassicController.m \ OHWiiGameController.m SRCS_XINPUT = OHXInputExtendedGamepad.m \ OHXInputGameController.m INCLUDES := ${SRCS:.m=.h} \ OHExtendedGamepad.h \ |
︙ |
Modified src/hid/OHGameController.m from [9eedd672bc] to [f031e78d5e].
︙ | |||
35 36 37 38 39 40 41 42 43 44 45 46 47 48 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | + + + | #endif #ifdef OF_NINTENDO_3DS # import "OHNintendo3DSGameController.h" #endif #ifdef OF_WII # import "OHWiiGameController.h" #endif #ifdef OF_NINTENDO_SWITCH # import "OHNintendoSwitchGameController.h" #endif const uint16_t OHVendorIDSony = 0x054C; const uint16_t OHVendorIDNintendo = 0x057E; const uint16_t OHVendorIDGoogle = 0x18D1; const uint16_t OHProductIDDualShock4 = 0x09CC; const uint16_t OHProductIDDualSense = 0x0CE6; const uint16_t OHProductIDLeftJoyCon = 0x2006; |
︙ | |||
61 62 63 64 65 66 67 68 69 70 71 72 73 74 | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | + + | return [OHXInputGameController controllers]; #elif defined(OF_NINTENDO_DS) return [OHNintendoDSGameController controllers]; #elif defined(OF_NINTENDO_3DS) return [OHNintendo3DSGameController controllers]; #elif defined(OF_WII) return [OHWiiGameController controllers]; #elif defined(OF_NINTENDO_SWITCH) return [OHNintendoSwitchGameController controllers]; #else return [OFArray array]; #endif } - (instancetype)init { |
︙ |
Added src/hid/OHNintendoSwitchExtendedGamepad.h version [506fd309d9].
|
Added src/hid/OHNintendoSwitchExtendedGamepad.m version [472015d4b9].