Crate razer_driver_rs

Source
Expand description

Provides an interface for interacting with Razer devices.

Abstracts the USB HID interface and the data structure of the communication protocol.

§Example

A basic example would be

use razer_driver_rs::*;

let devices = scan_for_devices()?;
let keyboard = devices.keyboards.get(0).unwrap();
let brightness = keyboard.get_brightness()?;
println!("brightness {}", brightness);
keyboard.set_brightness(90)?;

Modules§

Structs§

  • Structure that contains every type of device found connected to the computer

Enums§

  • Every kind of error that might be sent from this library

Functions§

  • Entry point for interacting with any device. Finds anything connected to the computer.

Type Aliases§