Ignore:
Timestamp:
Mar 9, 2022, 5:44:06 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

change default usb method for ds3, now input event, no need to be root

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/Controller/DualShock3/src/main.cpp

    r433 r467  
    4747  if (connection == "usb") {
    4848    joystick = new DualShock3("dualshock3", receiverAddress,
    49                               receiverPort, DualShock3::Usb, period, 6);
    50   } else {
     49                              receiverPort, DualShock3::UsbEvent, period, 6);
     50  } else if (connection == "usb_hidraw") {
     51    joystick = new DualShock3("dualshock3", receiverAddress,
     52                              receiverPort, DualShock3::UsbHidRaw, period, 6);
     53  } else if (connection == "bluetooth") {
    5154    joystick = new DualShock3("dualshock3", receiverAddress,
    5255                              receiverPort, DualShock3::Bluetooth, period, 6);
     56  } else {
     57    manager->Err("unknown connection type\n");
     58    delete manager;
     59    return -1;
    5360  }
    5461
     
    7380
    7481    ValueArg<string> connectionArg("c", "connection",
    75                                    "connection type (usb or bluetooth)", false,
     82                                   "connection type (usb, usb_hidraw or bluetooth)", false,
    7683                                   "bluetooth", "string");
    7784    cmd.add(connectionArg);
Note: See TracChangeset for help on using the changeset viewer.