Skip to main content

Crate makxd

Crate makxd 

Source
Expand description

makxd — Rust library for controlling MAKXD devices.

§Quick start

use makxd::{Device, Button};

let dev = Device::connect().expect("MAKXD not found");

dev.button_down(Button::Left).unwrap();
dev.move_xy(100, 50).unwrap();
dev.button_up(Button::Left).unwrap();

Re-exports§

pub use error::MakxdError;
pub use error::Result;
pub use types::BleConnectionIo;
pub use types::Button;
pub use types::ButtonMask;
pub use types::CONTROLLER_TRIGGER_MAX;
pub use types::ConnectionConfig;
pub use types::ConnectionState;
pub use types::ControllerControl;
pub use types::ControllerMaskMode;
pub use types::ControllerState;
pub use types::DeviceInfo;
pub use types::DeviceKind;
pub use types::DeviceKinds;
pub use types::KeyboardKey;
pub use types::UdpWireMode;
pub use crossbeam_channel;

Modules§

error
profiler
Per-command timing profiler. Zero-cost when the profile feature is disabled.
stream
Independent, on-change input subscriptions. All events use the MAK frame.
types

Macros§

timed
Convenience macro — times the expression and records it. Compiles to just the expression when the profile feature is off.

Structs§

Device
An open connection to a MAKXD device.
DeviceConfig
Configuration for connecting to a MAKXD device.

Enums§

ApiOpcode

Constants§

VERSION
Library version.