Comment: | OFGameController: Add support for Wii |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | gamecontroller |
Files: | files | file ages | folders |
SHA3-256: |
918c9d077aaf2bff63790b7a09832b02 |
User & Date: | js on 2024-05-20 01:17:43 |
Other Links: | branch diff | manifest | tags |
2024-05-20
| ||
01:36 | tests/gamecontroller: Check for new controllers check-in: 32e67cf259 user: js tags: gamecontroller | |
01:17 | OFGameController: Add support for Wii check-in: 918c9d077a user: js tags: gamecontroller | |
2024-05-19
| ||
14:18 | Make game controller tests work on Nintendo DS check-in: ca175fe9db user: js tags: gamecontroller | |
Modified .fossil-settings/ignore-glob from [6d33fb85c7] to [affe6beb0b].
︙ | |||
13 14 15 16 17 18 19 | 13 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 43 44 45 46 47 48 49 50 51 52 53 54 | - + + + | *.so *.so.* */.deps .deps .git aclocal.m4 autom4te.cache |
︙ |
Modified configure.ac from [32f42f29d4] to [9f1df4bb0d].
︙ | |||
168 169 170 171 172 173 174 | 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | - + | flags="-mrvl -mcpu=750 -meabi -mhard-float" OBJCFLAGS="$OBJCFLAGS $flags" OBJFW_OBJCFLAGS="$OBJFW_OBJCFLAGS $flags" CPPFLAGS="$CPPFLAGS -DGEKKO -I$DEVKITPRO/libogc/include" OBJFW_CPPFLAGS="$OBJFW_CPPFLAGS -DGEKKO -I\$DEVKITPRO/libogc/include" LDFLAGS="$LDFLAGS -mrvl -mcpu=750 -meabi -mhard-float" LIBS="$LIBS -L$DEVKITPRO/libogc/lib/wii -lfat -logc" |
︙ | |||
434 435 436 437 438 439 440 | 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 | + - + | AS_IF([test x"$build_framework" = x"yes"], [ TESTS_LIBS="-framework ObjFW \${RUNTIME_FRAMEWORK_LIBS} $TESTS_LIBS" TESTS_LIBS="-framework ObjFWHID $TESTS_LIBS" TESTS_LIBS="-F../src -F../src/runtime -F../src/hid $TESTS_LIBS" ], [ TESTS_LIBS="-L../src/runtime \${RUNTIME_LIBS} $TESTS_LIBS" TESTS_LIBS="-L../src -lobjfw $TESTS_LIBS" |
︙ | |||
2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 | 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 | + + | AC_SUBST(AS, $OBJC) AC_SUBST(ASFLAGS) AC_SUBST(DEP_ASFLAGS, '${DEP_OBJCFLAGS}') AC_SUBST(OBJFW_CPPFLAGS) AC_SUBST(OBJFW_OBJCFLAGS) AC_SUBST(HID_LIBS) AC_SUBST(TESTS_LIBS) AC_CONFIG_FILES([ buildsys.mk extra.mk src/Info.plist src/hid/Info.plist src/hid/ObjFWHID.oc tests/Info.plist utils/objfw-config ]) AC_CONFIG_HEADERS([config.h src/objfw-defs.h]) AC_OUTPUT AS_IF([test x"$old_compiler" = x"yes"], [ |
︙ |
Modified extra.mk.in from [2ce4f6d10c] to [ee60b335fa].
︙ | |||
41 42 43 44 45 46 47 48 49 50 51 52 53 54 | 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | + | ENCODINGS_A = @ENCODINGS_A@ ENCODINGS_LIB_A = @ENCODINGS_LIB_A@ ENCODINGS_SRCS = @ENCODINGS_SRCS@ EXCEPTIONS_A = @EXCEPTIONS_A@ EXCEPTIONS_LIB_A = @EXCEPTIONS_LIB_A@ FORWARDING_A = @FORWARDING_A@ FORWARDING_LIB_A = @FORWARDING_LIB_A@ HID_LIBS = @HID_LIBS@ LIBBASES_M = @LIBBASES_M@ LIBOBJFWHID_DEP = @LIBOBJFWHID_DEP@ LIBOBJFWHID_DEP_LVL2 = @LIBOBJFWHID_DEP_LVL2@ LIBOBJFWRT_DEP = @LIBOBJFWRT_DEP@ LIBOBJFWRT_DEP_LVL2 = @LIBOBJFWRT_DEP_LVL2@ LIBOBJFW_DEP = @LIBOBJFW_DEP@ LIBOBJFW_DEP_LVL2 = @LIBOBJFW_DEP_LVL2@ |
︙ |
Modified src/hid/OFEvdevGameController.h from [8ab70e7289] to [251f0edbf4].
︙ | |||
23 24 25 26 27 28 29 | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | + - + | @interface OFEvdevGameController: OFGameController { OFString *_path; int _fd; uint16_t _vendorID, _productID; OFString *_name; OFMutableSet OF_GENERIC(OFGameControllerButton) *_buttons; |
︙ |
Modified src/hid/OFEvdevGameController.m from [7e2448fb2d] to [3ddc2d6279].
︙ | |||
237 238 239 240 241 242 243 | 237 238 239 240 241 242 243 244 245 246 247 248 249 250 | - - - - - | [controllers makeImmutable]; objc_autoreleasePoolPop(pool); return controllers; } |
︙ |
Modified src/hid/OFGameController.h from [933ce242f6] to [377e60382e].
︙ | |||
69 70 71 72 73 74 75 | 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | - + | * * @ref OFGameControllerZButton * * @ref OFGameControllerCPadUpButton * * @ref OFGameControllerCPadDownButton * * @ref OFGameControllerCPadLeftButton * * @ref OFGameControllerCPadRightButton * * @ref OFGameControllerSLButton * * @ref OFGameControllerSRButton |
︙ | |||
227 228 229 230 231 232 233 | 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | - - - - - | extern const OFGameControllerButton OFGameControllerSLButton; /** * @brief The SR button on a game controller. */ extern const OFGameControllerButton OFGameControllerSRButton; |
︙ |
Modified src/hid/OFGameController.m from [70e6c920ca] to [6850544fb5].
︙ | |||
26 27 28 29 30 31 32 33 34 35 36 37 38 39 | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | + + + | #if defined(OF_LINUX) && defined(OF_HAVE_FILES) # include "OFEvdevGameController.h" #endif #ifdef OF_WINDOWS # include "OFXInputGameController.h" #endif #ifdef OF_WII # include "OFWiiGameController.h" #endif #ifdef OF_NINTENDO_DS # include "OFNintendoDSGameController.h" #endif #ifdef OF_NINTENDO_3DS # include "OFNintendo3DSGameController.h" #endif |
︙ | |||
67 68 69 70 71 72 73 | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | - + + | const OFGameControllerButton OFGameControllerZButton = @"Z"; const OFGameControllerButton OFGameControllerCPadUpButton = @"C-Pad Up"; const OFGameControllerButton OFGameControllerCPadDownButton = @"C-Pad Down"; const OFGameControllerButton OFGameControllerCPadLeftButton = @"C-Pad Left"; const OFGameControllerButton OFGameControllerCPadRightButton = @"C-Pad Right"; const OFGameControllerButton OFGameControllerSLButton = @"SL"; const OFGameControllerButton OFGameControllerSRButton = @"SR"; |
︙ | |||
144 145 146 147 148 149 150 151 152 153 154 155 156 | 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | + + + | #if defined(OF_LINUX) && defined(OF_HAVE_FILES) # include "OFEvdevGameController.m" #endif #ifdef OF_WINDOWS # include "OFXInputGameController.m" #endif #ifdef OF_WII # include "OFWiiGameController.m" #endif #ifdef OF_NINTENDO_DS # include "OFNintendoDSGameController.m" #endif #ifdef OF_NINTENDO_3DS # include "OFNintendo3DSGameController.m" #endif |
Modified src/hid/OFNintendo3DSGameController.h from [54f724ec89] to [143c577afb].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 | - + | #import "OFGameController.h" OF_ASSUME_NONNULL_BEGIN @interface OFNintendo3DSGameController: OFGameController { |
Modified src/hid/OFNintendo3DSGameController.m from [c19a2f1b59] to [5dde4675ee].
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | + + - - + + - + + + + + - - - - - - - - - + | #define id id_3ds #include <3ds.h> #undef id static OFArray OF_GENERIC(OFGameController *) *controllers; @implementation OFNintendo3DSGameController @synthesize leftAnalogStickPosition = _leftAnalogStickPosition; |
︙ |
Modified src/hid/OFNintendoDSGameController.h from [b8a00a7023] to [a3f594eb12].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 | - + | #import "OFGameController.h" OF_ASSUME_NONNULL_BEGIN @interface OFNintendoDSGameController: OFGameController { |
Modified src/hid/OFNintendoDSGameController.m from [ca22ee2dc5] to [76ee0663ed].
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | - - + + - + + + + + - - - - - - - + | #define asm __asm__ #include <nds.h> #undef asm static OFArray OF_GENERIC(OFGameController *) *controllers; |
︙ |
Added src/hid/OFWiiGameController.h version [d872d533c3].
|
Added src/hid/OFWiiGameController.m version [30f9adda3d].