now use NativeGamepad class

This commit is contained in:
Diego Waxemberg
2013-12-30 23:24:30 -05:00
parent 3c04ba8e3d
commit f2b62e0b55
+5
View File
@@ -10,6 +10,7 @@ import com.limelight.gui.MainFrame;
import com.limelight.gui.StreamFrame; import com.limelight.gui.StreamFrame;
import com.limelight.input.gamepad.Gamepad; import com.limelight.input.gamepad.Gamepad;
import com.limelight.input.gamepad.GamepadListener; import com.limelight.input.gamepad.GamepadListener;
import com.limelight.input.gamepad.NativeGamepad;
import com.limelight.nvstream.NvConnection; import com.limelight.nvstream.NvConnection;
import com.limelight.nvstream.NvConnectionListener; import com.limelight.nvstream.NvConnectionListener;
import com.limelight.nvstream.StreamConfiguration; import com.limelight.nvstream.StreamConfiguration;
@@ -56,6 +57,7 @@ public class Limelight implements NvConnectionListener {
VideoDecoderRenderer.FLAG_PREFER_QUALITY, VideoDecoderRenderer.FLAG_PREFER_QUALITY,
PlatformBinding.getAudioRenderer(), PlatformBinding.getAudioRenderer(),
PlatformBinding.getVideoDecoderRenderer()); PlatformBinding.getVideoDecoderRenderer());
GamepadListener.getInstance().addDeviceListener(new Gamepad(conn)); GamepadListener.getInstance().addDeviceListener(new Gamepad(conn));
} }
@@ -125,6 +127,9 @@ public class Limelight implements NvConnectionListener {
LibraryHelper.prepareNativeLibraries(); LibraryHelper.prepareNativeLibraries();
createFrame(); createFrame();
NativeGamepad.start();
NativeGamepad.addListener(GamepadListener.getInstance());
} }
public void stop() { public void stop() {