We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 808f3cd commit 852014fCopy full SHA for 852014f
mos-platform/neo6502/api/controller.c
@@ -16,7 +16,8 @@ uint8_t neo_controller_count(void) {
16
return ControlPort.params[0];
17
}
18
19
-uint8_t neo_controller_read(uint8_t index) {
+uint32_t neo_controller_read(uint8_t index) {
20
+ ControlPort.params[0] = index;
21
KSendMessageSync(API_GROUP_CONTROLLER, API_FN_READ_CONTROLLER2);
22
return *((uint32_t*) ControlPort.params);
23
0 commit comments