N64 pak implementation which emulates a Rumble Pak, providing a callback for motor state changes.
More...
N64 pak implementation which emulates a Rumble Pak, providing a callback for motor state changes.
◆ JOYBUS_TARGET_N64_RUMBLE_PAK
| #define JOYBUS_TARGET_N64_RUMBLE_PAK |
( |
| pak | ) |
|
Value:
N64 Rumble Pak pak.
Definition n64_rumble_pak.h:33
Macro to cast from a generic N64 pak to a rumble pak.
◆ joybus_target_n64_rumble_pak_motor_cb
Callback type for rumble pak motor state change events.
- Parameters
-
| pak | the rumble pak whose motor state changed |
| active | true if the motor should be on, false if off |
◆ joybus_target_n64_rumble_pak_init()
Initialize a rumble pak.
- Parameters
-
| pak | the rumble pak to initialize |
◆ joybus_target_n64_rumble_pak_set_motor_cb()
Set the motor state change callback for the rumble pak.
NOTE: Motor callbacks are called from interrupt context, do not perform any blocking operations within the callback.
- Parameters
-
| pak | the rumble pak to set the callback for |
| callback | the callback function |