razerctl 0.1.1

Allows you to control your mouse with Razer Synapse
docs.rs failed to build razerctl-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: razerctl-0.3.5

razerctl

A Rust port of the original rzctl project, allows you to control your mouse with Razer Synapse

Requirements

  • Windows operating system
  • Rust 1.56 or higher

Safety

This crate uses unsafe code for Windows API interactions but provides safe abstractions for users. All unsafe operations are thoroughly documented and contained within the implementation.

Features

  • ✅ Currently supports mouse movement/clicking
  • ❌ No support for keyboard yet

Installation

Add this to your Cargo.toml:

[dependencies]

razerctl = "0.1.0"

Quick Start

use std::io::Error;

use razerctl::{init, mouse_move};

fn main() -> Result<(), Error> {
    // Initialize with default settings
    init()?;
    
    // Move mouse to coordinates (100, 100)
    mouse_move(100, 100, true)?;
    
    Ok(())
}

Examples

Run the included examples:

# Basic mouse movement demo

cargo run --example basic_mouse_move


# Fast mouse movement demo

cargo run --example fast_mouse_move

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.