Skip to content

Commit

Permalink
Fix WiiBrew links in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cesmec committed Apr 21, 2024
1 parent 92bc0c7 commit 92c0ab7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,27 +160,27 @@ pub enum InputReport {
/// Can be requested by sending an output report with ID 0x15 and is automatically
/// sent when the Extension is connected or disconnected.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#0x20:_Status
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#0x20:_Status>
StatusInformation(StatusData),
/// Read memory data report (ID 0x21).
///
/// Result of a read memory request (output report ID 0x17).
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#0x21:_Read_Memory_Data
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#0x21:_Read_Memory_Data>
ReadMemory(MemoryData),
/// Acknowledge report (ID 0x22).
///
/// Sent as a response to an output report with a corresponding result or error.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#0x22:_Acknowledge_output_report.2C_return_function_result
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#0x22:_Acknowledge_output_report.2C_return_function_result>
Acknowledge(AcknowledgeData),
/// Data report (IDs 0x30-0x3F).
///
/// Contains the data of the buttons, accelerometer, IR and Extension from the Wii remote.
/// The exact data depends on the report type requested by the output report 0x12.
/// Defaults to 0x30 which only contains the button data.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#Data_Reporting
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#Data_Reporting>
DataReport(u8, WiimoteData),
}

Expand Down
22 changes: 11 additions & 11 deletions src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,49 +64,49 @@ impl Addressing {
pub enum OutputReport {
/// Turn rumble on or off without any other changes.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#Rumble
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#Rumble>
Rumble(bool),
/// Set the player LED lights.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#Player_LEDs
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#Player_LEDs>
PlayerLed(PlayerLedFlags),
/// Set the data reporting mode of the input reports.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#Data_Reporting
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#Data_Reporting>
DataReportingMode(DataReporingMode),
/// Enable or disable the IR camera (first step of enable sequence).
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#IR_Camera
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#IR_Camera>
IrCameraEnable(bool),
/// Enable or disable the built-in speaker.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#Speaker
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#Speaker>
SpeakerEnable(bool),
/// Request a status input report from the Wii remote.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#0x20:_Status
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#0x20:_Status>
StatusRequest,
/// Write up to 16 bytes of data to the Wii remote's memory or registers.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#Memory_and_Registers
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#Memory_and_Registers>
WriteMemory(Addressing, [u8; 16]),
/// Read data from the Wii remote's memory or registers.
/// The data is returned as `InputReport::ReadMemory` reports in chunks of 16 bytes.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#Memory_and_Registers
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#Memory_and_Registers>
ReadMemory(Addressing),
/// Send data to the built-in speaker.
/// The first byte is the length of the data, followed by the actual data.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#Speaker
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#Speaker>
SpeakerData(u8, [u8; 20]),
/// Mute or unmute the built-in speaker.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#Speaker
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#Speaker>
SpeakerMute(bool),
/// Second step of IR camera enable sequence.
///
/// WiiBrew Documentation: https://www.wiibrew.org/wiki/Wiimote#IR_Camera
/// WiiBrew Documentation: <https://www.wiibrew.org/wiki/Wiimote#IR_Camera>
IrCameraEnable2(bool),
}

Expand Down

0 comments on commit 92c0ab7

Please sign in to comment.