1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//! Steam controller handling library.

             extern crate byteorder;
#[macro_use] extern crate bitflags;

#[cfg(target_os = "linux")]
extern crate libusb as usb;

#[cfg(not(target_os = "linux"))]
extern crate hid;

const VENDOR_ID:  u16       = 0x28de;
const PRODUCT_ID: [u16;  2] = [0x1102, 0x1142];
const ENDPOINT:   [u8;   2] = [3, 2];
const INDEX:      [u16;  2] = [2, 1];

mod error;
pub use error::Error;

pub type Result<T> = ::std::result::Result<T, Error>;

mod manager;
pub use manager::Manager;

mod controller;
pub use controller::Controller;

mod feedback;
pub use feedback::Feedback;

mod sensors;
pub use sensors::Sensors;

mod led;
pub use led::Led;

pub mod sound;
pub use sound::Sound;

mod calibrate;
pub use calibrate::Calibrate;

mod lizard;
pub use lizard::Lizard;

pub mod button;
pub use button::Button;

mod state;
pub use state::{State, Axis, Trigger, Pad, Angles};

pub mod details;
pub use details::Details;