Changeset 467 in flair-src for trunk/tools/Controller/DualShock3/src/main.cpp
- Timestamp:
- Mar 9, 2022, 5:44:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/Controller/DualShock3/src/main.cpp
r433 r467 47 47 if (connection == "usb") { 48 48 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") { 51 54 joystick = new DualShock3("dualshock3", receiverAddress, 52 55 receiverPort, DualShock3::Bluetooth, period, 6); 56 } else { 57 manager->Err("unknown connection type\n"); 58 delete manager; 59 return -1; 53 60 } 54 61 … … 73 80 74 81 ValueArg<string> connectionArg("c", "connection", 75 "connection type (usb or bluetooth)", false,82 "connection type (usb, usb_hidraw or bluetooth)", false, 76 83 "bluetooth", "string"); 77 84 cmd.add(connectionArg);
Note:
See TracChangeset
for help on using the changeset viewer.