Joybus target implementation for standard N64 controllers.
More...
|
| | N64 Pak |
| | Interface for implementing N64 "Pak" behavior (Rumble Pak, Controller Pak, etc.) when attached to an N64 controller target.
|
Joybus target implementation for standard N64 controllers.
◆ JOYBUS_TARGET_N64_CONTROLLER
| #define JOYBUS_TARGET_N64_CONTROLLER |
( |
| target | ) |
|
Value:
N64 controller Joybus target.
Definition n64_controller.h:36
Macro to cast from a generic Joybus target to an N64 controller target.
◆ joybus_target_n64_controller_reset_cb
Callback type for N64 controller reset events.
Runs in interrupt context, on the response critical path, so it must return quickly. Mark the implementation with JOYBUS_RAM_FUNC.
- Parameters
-
| controller | the controller that was reset |
◆ joybus_target_n64_controller_attach_pak()
Attach an pak to the controller.
- Parameters
-
| controller | the controller to attach the pak to |
| pak | the pak to attach |
◆ joybus_target_n64_controller_calibrate()
Sample the current stick position as the controller's neutral origin.
- Parameters
-
| controller | the controller to calibrate |
◆ joybus_target_n64_controller_detach_pak()
Detach the currently attached pak from the controller.
- Parameters
-
| controller | the controller to detach the pak from |
◆ joybus_target_n64_controller_init()
Initialize an N64 controller.
This function sets up the initial state, and registers Joybus command handlers for OEM N64 controller commands.
- Parameters
-
| controller | the controller to initialize |
◆ joybus_target_n64_controller_set_reset_cb()
Set the reset callback for the controller.
- Parameters
-
| controller | the controller to set the callback for |
| callback | the callback function |