Changeset 137 in flair-src for trunk/tools/Controller/DualShock3


Ignore:
Timestamp:
Feb 14, 2017, 3:06:20 PM (8 years ago)
Author:
Sanahuja Guillaume
Message:

singleton manager

Location:
trunk/tools/Controller/DualShock3/src
Files:
3 edited

Legend:

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

    r16 r137  
    7979namespace sensor {
    8080
    81 DualShock3::DualShock3(const FrameworkManager *parent, string name,
     81DualShock3::DualShock3(string name,
    8282                       string receiverAddress, int receiverPort,
    8383                       ConnectionType_t _connectionType, uint32_t period,
    8484                       uint32_t bitsPerAxis, uint8_t priority)
    85     : HostEthController(parent, name, receiverAddress, receiverPort, period,
     85    : HostEthController(name, receiverAddress, receiverPort, period,
    8686                        bitsPerAxis, priority),
    8787      connectionType(_connectionType) {
  • trunk/tools/Controller/DualShock3/src/DualShock3.h

    r16 r137  
    5252  typedef enum { Usb, Bluetooth } ConnectionType_t;
    5353
    54   DualShock3(const core::FrameworkManager *parent, std::string name,
     54  DualShock3(std::string name,
    5555             std::string receiverAddress, int receiverPort,
    5656             ConnectionType_t connectionType, uint32_t period = 10,
  • trunk/tools/Controller/DualShock3/src/main.cpp

    r16 r137  
    4747  if (connection == "usb") {
    4848    //        manager->Warn("!! adresse = %s !!\n", address.c_str());
    49     joystick = new DualShock3(manager, "dualshock3", receiverAddress,
     49    joystick = new DualShock3("dualshock3", receiverAddress,
    5050                              receiverPort, DualShock3::Usb, period, 6);
    5151  } else {
    52     joystick = new DualShock3(manager, "dualshock3", receiverAddress,
     52    joystick = new DualShock3("dualshock3", receiverAddress,
    5353                              receiverPort, DualShock3::Bluetooth, period, 6);
    5454  }
Note: See TracChangeset for help on using the changeset viewer.