libjoybus
Joybus implementation for 32-bit MCUs
Loading...
Searching...
No Matches
n64_pak_rumble.h
1
9
10#pragma once
11
12#include <stdbool.h>
13#include <stdint.h>
14
15#include <joybus/target/n64_pak.h>
16
18
20#define JOYBUS_TARGET_N64_PAK_RUMBLE(pak) ((struct joybus_target_n64_pak_rumble *)(pak))
21
32
49
56
void joybus_target_n64_pak_rumble_set_motor_cb(struct joybus_target_n64_pak_rumble *pak, joybus_target_n64_pak_rumble_motor_cb callback)
Set the motor state change callback for the rumble pak.
Definition n64_pak_rumble.c:77
void(* joybus_target_n64_pak_rumble_motor_cb)(struct joybus_target_n64_pak_rumble *pak, bool active)
Callback type for rumble pak motor state change events.
Definition n64_pak_rumble.h:31
void joybus_target_n64_pak_rumble_init(struct joybus_target_n64_pak_rumble *pak)
Initialize a rumble pak.
Definition n64_pak_rumble.c:67
N64 Rumble Pak pak.
Definition n64_pak_rumble.h:36
joybus_target_n64_pak_rumble_motor_cb on_motor_change
Callback for motor state change events.
Definition n64_pak_rumble.h:47
bool enabled
Rumble pak enabled.
Definition n64_pak_rumble.h:41
bool active
Current motor state.
Definition n64_pak_rumble.h:44
struct joybus_target_n64_pak base
Base pak interface.
Definition n64_pak_rumble.h:38
An N64 pak, such as a Rumble Pak or Controller Pak.
Definition n64_pak.h:94