Differences From Artifact [5f3c3f51d8]:
- File
src/OFGameController.m
— part of check-in
[498a91a2a4]
at
2024-05-05 19:56:47
on branch gamecontroller
— OFGameController: Rename axis to analog stick
This was just wrong, an analog stick has two axes. (user: js, size: 1366) [annotate] [blame] [check-ins using]
To Artifact [8a9752888e]:
- File src/OFGameController.m — part of check-in [3ef11175bc] at 2024-05-05 23:07:30 on branch gamecontroller — OFGameController: Fix typos (user: js, size: 1366) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
21 22 23 24 25 26 27 | #import "OFGameController.h" #import "OFOutOfRangeException.h" #if defined(OF_NINTENDO_DS) # include "platform/NintendoDS/OFGameController.m" | | | | 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 | #import "OFGameController.h" #import "OFOutOfRangeException.h" #if defined(OF_NINTENDO_DS) # include "platform/NintendoDS/OFGameController.m" #elif defined(OF_NINTENDO_3DS) # include "platform/Nintendo3DS/OFGameController.m" #else @implementation OFGameController @dynamic buttons, pressedButtons, numAnalogSticks; + (size_t)numControllers { return 0; } + (OFGameController *)controllerWithIndex: (size_t)index { @throw [OFOutOfRangeException exception]; } - (instancetype)init { OF_INVALID_INIT_METHOD } - (OFPoint)positionOfAnalogStickWithIndex: (size_t)index { OF_UNRECOGNIZED_SELECTOR } @end #endif |