public CoPilotActionsController(IJoystickStateListener coPilotRightStickListener, ICameraHandler cameraHandler, ICoPilotViewHandler coPilotView) { this.coPilotRightStickListener = coPilotRightStickListener; this.cameraHandler = cameraHandler; this.coPilotView = coPilotView; this.coPilotRightStickListener.JoystickStateChanged += coPilotRightStick_StateChanged; }
public PilotActionsController(IJoystickStateListener pilotStickListener, ICameraHandler cameraHandler, IPilotViewHandler pilotView) { this.pilotStickListener = pilotStickListener; this.cameraHandler = cameraHandler; this.pilotView = pilotView; this.pilotStickListener.JoystickStateChanged += pilotStick_StateChanged; }
private void initializePilotJoystickListener(JoystickStateStore stateStore) { MainPacketBuilder mainPacketBuilder = new MainPacketBuilder(pilotJoystick); pilotStickListener = new JoystickStateListener(pilotJoystick, mainPacketBuilder, stateStore); RunInBackgroundThread(pilotStickListener.Listen); }