g29 0.2.1

A library offering an interface for Logitech G29 wheel/pedal and force feedback control.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// This example illustrates the use case of this library
/// for reading G29 input, without runing a separate thread and transform the
/// input to Carla controle Value
use g29::interface::G29Interface;

fn main() {
    let mut controle = G29Interface::new();
    loop {
        controle.pump(10);
        println!("Carla_controle = {:?}", controle.carla_vehicle_controle());
        println!("State_Controlle = {:?}", controle.get_state());
    }
}